Skip to content

Commit

Permalink
Improved Windows Installer uninstall process
Browse files Browse the repository at this point in the history
The uninstaller can delete all files rather than the presence of residual files.
  • Loading branch information
Hill-98 authored and uglide committed Oct 21, 2019
1 parent 6080cf9 commit aba609c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/windows/installer/installer.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,17 @@ done${UNSECTION_ID}:

# Uninstaller sections
Section /o -un.Main UNSEC0000
${nsProcess::KillProcess} "${APP_EXE}" $R4
Sleep 1000
Delete /REBOOTOK $INSTDIR\*
Delete /REBOOTOK $INSTDIR\platforms\*
RmDir /REBOOTOK /r $INSTDIR\*
DeleteRegValue HKLM "${REGKEY}\Components" Main
SectionEnd

Section -un.post UNSEC0001
DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\$(^Name)"
Delete /REBOOTOK "$DESKTOP\RedisDesktopManager.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\RedisDesktopManager.lnk"
Delete /REBOOTOK "$SMPROGRAMS\$StartMenuGroup\$(^UninstallLink).lnk"
Delete /REBOOTOK $INSTDIR\uninstall.exe
DeleteRegValue HKLM "${REGKEY}" Path
Expand Down

0 comments on commit aba609c

Please sign in to comment.