changeset 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 64333dad503b
children 8897c90b8166
files packaging/trustbridge.nsi
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
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"
 

http://wald.intevation.org/projects/trustbridge/