mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-12 03:29:49 +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:
parent
445f51d595
commit
070707210c
@ -222,13 +222,6 @@ Section "Uninstall"
|
|||||||
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
||||||
RMDir /r "$SMPROGRAMS\$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)
|
; Remove registry keys and vendor keys (if empty)
|
||||||
DeleteRegKey SHCTX "${BASEREGKEY}"
|
DeleteRegKey SHCTX "${BASEREGKEY}"
|
||||||
DeleteRegKey /ifempty SHCTX "${VENDORREGKEY}"
|
DeleteRegKey /ifempty SHCTX "${VENDORREGKEY}"
|
||||||
@ -246,6 +239,8 @@ Function .onInit
|
|||||||
SetRegView 32
|
SetRegView 32
|
||||||
!endif
|
!endif
|
||||||
!insertmacro MULTIUSER_INIT
|
!insertmacro MULTIUSER_INIT
|
||||||
|
; it appears that the languages shown may not always be filtered correctly
|
||||||
|
!define MUI_LANGDLL_ALLLANGUAGES
|
||||||
!insertmacro MUI_LANGDLL_DISPLAY
|
!insertmacro MUI_LANGDLL_DISPLAY
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user