Skip to content

Commit 4ac4449

Browse files
committed
dist: Add the uninstaller to the win32 control panel
1 parent ac79f61 commit 4ac4449

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/etc/pkg/rust.nsi

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,19 @@ Section "Uninstall"
4141
RMDir $INSTDIR\bin
4242
RMDir $INSTDIR\doc
4343
RMDir $INSTDIR
44+
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Rust"
4445
SectionEnd
4546

4647
Section
4748
WriteUninstaller $INSTDIR\uninstall.exe
49+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Rust" \
50+
"DisplayName" "Rust"
51+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Rust" \
52+
"Publisher" "Mozilla"
53+
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Rust" \
54+
"NoModify" 1
55+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Rust" \
56+
"UninstallString" "$\"$INSTDIR\uninstall.exe$\""
57+
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Rust" \
58+
"QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S"
4859
SectionEnd

0 commit comments

Comments
 (0)