[PATCH 1 of 3] Add framework to uninstall certificates

Wald Commits scm-commit at wald.intevation.org
Mon Jul 28 13:07:35 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1406545507 -7200
# Node ID bd9d07c301fd8331a2848b69b36d1bf3926c7f00
# Parent  8081ed84589d49b1510004a4cf99080eb3cab3d2
Add framework to uninstall certificates

diff -r 8081ed84589d -r bd9d07c301fd packaging/trustbridge.nsi
--- 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"


More information about the Trustbridge-commits mailing list