1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-05-11 11:19:48 +00:00

Update setup.nsi

- Always display all language choices to fix #461
- Stop recursively removing installation directory as that
  is not a safe operation.  This may leave the installation
  directory after uninstallation but should be empty.  Fix #456.
This commit is contained in:
Andrew Senetar 2017-11-17 21:04:09 -06:00
parent 445f51d595
commit 070707210c

View File

@ -222,13 +222,6 @@ Section "Uninstall"
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
RMDir /r "$SMPROGRAMS\$StartMenuFolder"
; Delete the Install Directory and vendor directory (if empty)
Push $R0
RMDir /r "$INSTDIR" ;NSIS seems to recomend against this... look into options
${GetParent} "$INSTDIR" $R0
RMDir $R0
Pop $R0
; Remove registry keys and vendor keys (if empty)
DeleteRegKey SHCTX "${BASEREGKEY}"
DeleteRegKey /ifempty SHCTX "${VENDORREGKEY}"
@ -246,6 +239,8 @@ Function .onInit
SetRegView 32
!endif
!insertmacro MULTIUSER_INIT
; it appears that the languages shown may not always be filtered correctly
!define MUI_LANGDLL_ALLLANGUAGES
!insertmacro MUI_LANGDLL_DISPLAY
FunctionEnd