Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
1329:64333dad503b | 1330:c7349696d812 |
---|---|
280 !ifdef WRITE_UNINSTALLER | 280 !ifdef WRITE_UNINSTALLER |
281 | 281 |
282 !include "StrFunc.nsh" | 282 !include "StrFunc.nsh" |
283 | 283 |
284 Section "Uninstall" | 284 Section "Uninstall" |
285 ExpandEnvStrings $0 %LOCALAPPDATA% | |
286 Delete "$0\BSI\TrustBridge\SW*.exe" | |
285 StrCmp "$douninstcertificates" "TRUE" 0 skip_certs | 287 StrCmp "$douninstcertificates" "TRUE" 0 skip_certs |
286 ExpandEnvStrings $0 %LOCALAPPDATA% | |
287 nsExec::ExecToLog '"$INSTDIR\trustbridge-certificate-installer.exe" "list=$0\BSI\TrustBridge\list-installed.txt" "choices=uninstall"' | 288 nsExec::ExecToLog '"$INSTDIR\trustbridge-certificate-installer.exe" "list=$0\BSI\TrustBridge\list-installed.txt" "choices=uninstall"' |
288 Delete "$0\BSI\TrustBridge\list*.txt" | 289 Delete "$0\BSI\TrustBridge\list*.txt" |
289 Delete "$0\BSI\TrustBridge\SW*.exe" | |
290 RmDir "$0\BSI\TrustBridge" | |
291 RmDir "$0\BSI" | |
292 ExpandEnvStrings $0 %APPDATA% | 290 ExpandEnvStrings $0 %APPDATA% |
293 Delete "$0\BSI\TrustBridge.ini" | 291 Delete "$0\BSI\TrustBridge.ini" |
294 RmDir "$0\BSI" | |
295 var /GLOBAL user_count | 292 var /GLOBAL user_count |
296 StrCpy $user_count 0 | 293 StrCpy $user_count 0 |
297 | 294 |
298 UserInfo::GetAccountType | 295 UserInfo::GetAccountType |
299 pop $0 | 296 pop $0 |
329 skip_certs: | 326 skip_certs: |
330 deleteNSSInstaller: | 327 deleteNSSInstaller: |
331 Delete "$INSTDIR\trustbridge-nss-installer.exe" | 328 Delete "$INSTDIR\trustbridge-nss-installer.exe" |
332 dontDeleteNSS: | 329 dontDeleteNSS: |
333 !include "filelist_un.nsh" | 330 !include "filelist_un.nsh" |
331 ExpandEnvStrings $0 %LOCALAPPDATA% | |
332 RmDir "$0\BSI\TrustBridge" | |
333 RmDir "$0\BSI" | |
334 Delete "$INSTDIR\Uninstall.exe" | 334 Delete "$INSTDIR\Uninstall.exe" |
335 RMDir "$INSTDIR" | 335 RMDir "$INSTDIR" |
336 | 336 |
337 !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder | 337 !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder |
338 | 338 |