Mercurial > trustbridge
diff packaging/trustbridge.nsi @ 1330:c7349696d812
(issue44) Be more agressive deleting old installers
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 15 Oct 2014 13:19:05 +0200 |
parents | 303de3160a83 |
children | 0971c7214e79 |
line wrap: on
line diff
--- a/packaging/trustbridge.nsi Wed Oct 15 13:18:30 2014 +0200 +++ b/packaging/trustbridge.nsi Wed Oct 15 13:19:05 2014 +0200 @@ -282,16 +282,13 @@ !include "StrFunc.nsh" Section "Uninstall" + ExpandEnvStrings $0 %LOCALAPPDATA% + Delete "$0\BSI\TrustBridge\SW*.exe" StrCmp "$douninstcertificates" "TRUE" 0 skip_certs - ExpandEnvStrings $0 %LOCALAPPDATA% nsExec::ExecToLog '"$INSTDIR\trustbridge-certificate-installer.exe" "list=$0\BSI\TrustBridge\list-installed.txt" "choices=uninstall"' Delete "$0\BSI\TrustBridge\list*.txt" - Delete "$0\BSI\TrustBridge\SW*.exe" - RmDir "$0\BSI\TrustBridge" - RmDir "$0\BSI" ExpandEnvStrings $0 %APPDATA% Delete "$0\BSI\TrustBridge.ini" - RmDir "$0\BSI" var /GLOBAL user_count StrCpy $user_count 0 @@ -331,6 +328,9 @@ Delete "$INSTDIR\trustbridge-nss-installer.exe" dontDeleteNSS: !include "filelist_un.nsh" + ExpandEnvStrings $0 %LOCALAPPDATA% + RmDir "$0\BSI\TrustBridge" + RmDir "$0\BSI" Delete "$INSTDIR\Uninstall.exe" RMDir "$INSTDIR"