changeset 1198:c072dda0b541

(issue133) Delete APPDATA local / roaming when certificates are also remvoed
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 22 Sep 2014 19:06:24 +0200
parents bfe305e09e2d
children bd2cb6bdb1c5
files packaging/trustbridge.nsi
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packaging/trustbridge.nsi	Mon Sep 22 19:05:20 2014 +0200
+++ b/packaging/trustbridge.nsi	Mon Sep 22 19:06:24 2014 +0200
@@ -274,6 +274,14 @@
   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"
+
 skip_certs:
   !include "filelist_un.nsh"
   Delete "$INSTDIR\Uninstall.exe"

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