changeset 835:bd9d07c301fd

Add framework to uninstall certificates
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 28 Jul 2014 13:05:07 +0200
parents 8081ed84589d
children 39de35015ac1
files packaging/trustbridge.nsi
diffstat 1 files changed, 19 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packaging/trustbridge.nsi	Mon Jul 28 13:03:45 2014 +0200
+++ b/packaging/trustbridge.nsi	Mon Jul 28 13:05:07 2014 +0200
@@ -46,6 +46,7 @@
 VIAddVersionKey "FileVersion" "${version_number}"
 
 Var StartMenuFolder
+Var uninstCertificates
 ;--------------------------------
 ; General
 
@@ -102,8 +103,26 @@
 !insertmacro MUI_PAGE_FINISH
 
 !ifdef WRITE_UNINSTALLER
+  !define MUI_PAGE_CUSTOMFUNCTION_SHOW un.ModifyUnInstfiles
+  !define MUI_PAGE_CUSTOMFUNCTION_LEAVE un.LeaveUnInstfiles
+
   !insertmacro MUI_UNPAGE_CONFIRM
   !insertmacro MUI_UNPAGE_INSTFILES
+
+  !define MUI_UNCONFIRMPAGE_TEXT_TOP "HALLO"
+  Function un.ModifyUnInstfiles
+  ${NSD_CreateCheckbox} 120u -18u 50% 12u "Verwaltete Zertifikate entfernen."
+    Pop $uninstCertificates
+    SetCtlColors $uninstCertificates "" ${MUI_BGCOLOR}
+    ;${NSD_Check} $uninstCertificates ; Check it by default
+  FunctionEnd
+
+  Function un.LeaveUnInstfiles
+    ${NSD_GetState} $uninstCertificates $0
+    ${If} $0 <> 0
+    MessageBox mb_ok "Do the uninstall1"
+    ${EndIf}
+  FunctionEnd
 !endif
 
 !insertmacro MUI_LANGUAGE "German"

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