Skip to content

Commit aba609c

Browse files
Hill-98uglide
authored andcommitted
Improved Windows Installer uninstall process
The uninstaller can delete all files rather than the presence of residual files.
1 parent 6080cf9 commit aba609c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/windows/installer/installer.nsi

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,17 @@ done${UNSECTION_ID}:
126126

127127
# Uninstaller sections
128128
Section /o -un.Main UNSEC0000
129+
${nsProcess::KillProcess} "${APP_EXE}" $R4
130+
Sleep 1000
129131
Delete /REBOOTOK $INSTDIR\*
130-
Delete /REBOOTOK $INSTDIR\platforms\*
132+
RmDir /REBOOTOK /r $INSTDIR\*
131133
DeleteRegValue HKLM "${REGKEY}\Components" Main
132134
SectionEnd
133135

134136
Section -un.post UNSEC0001
135137
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
138+
Delete /REBOOTOK "$DESKTOP\RedisDesktopManager.lnk"
139+
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\RedisDesktopManager.lnk"
136140
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk"
137141
Delete /REBOOTOK $INSTDIR\uninstall.exe
138142
DeleteRegValue HKLM "${REGKEY}" Path

0 commit comments

Comments
 (0)