comparison packaging/trustbridge.nsi @ 835:bd9d07c301fd

Add framework to uninstall certificates
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 28 Jul 2014 13:05:07 +0200
parents 747a48996c1f
children df6f3b1cc41c
comparison
equal deleted inserted replaced
834:8081ed84589d 835:bd9d07c301fd
44 VIAddVersionKey "LegalCopyright" "${copyright}" 44 VIAddVersionKey "LegalCopyright" "${copyright}"
45 VIAddVersionKey "FileDescription" "${description}" 45 VIAddVersionKey "FileDescription" "${description}"
46 VIAddVersionKey "FileVersion" "${version_number}" 46 VIAddVersionKey "FileVersion" "${version_number}"
47 47
48 Var StartMenuFolder 48 Var StartMenuFolder
49 Var uninstCertificates
49 ;-------------------------------- 50 ;--------------------------------
50 ; General 51 ; General
51 52
52 ; Define Name, File and Installdir of Installer 53 ; Define Name, File and Installdir of Installer
53 Name "${productname}" 54 Name "${productname}"
100 !insertmacro MUI_PAGE_DIRECTORY 101 !insertmacro MUI_PAGE_DIRECTORY
101 !insertmacro MUI_PAGE_INSTFILES 102 !insertmacro MUI_PAGE_INSTFILES
102 !insertmacro MUI_PAGE_FINISH 103 !insertmacro MUI_PAGE_FINISH
103 104
104 !ifdef WRITE_UNINSTALLER 105 !ifdef WRITE_UNINSTALLER
106 !define MUI_PAGE_CUSTOMFUNCTION_SHOW un.ModifyUnInstfiles
107 !define MUI_PAGE_CUSTOMFUNCTION_LEAVE un.LeaveUnInstfiles
108
105 !insertmacro MUI_UNPAGE_CONFIRM 109 !insertmacro MUI_UNPAGE_CONFIRM
106 !insertmacro MUI_UNPAGE_INSTFILES 110 !insertmacro MUI_UNPAGE_INSTFILES
111
112 !define MUI_UNCONFIRMPAGE_TEXT_TOP "HALLO"
113 Function un.ModifyUnInstfiles
114 ${NSD_CreateCheckbox} 120u -18u 50% 12u "Verwaltete Zertifikate entfernen."
115 Pop $uninstCertificates
116 SetCtlColors $uninstCertificates "" ${MUI_BGCOLOR}
117 ;${NSD_Check} $uninstCertificates ; Check it by default
118 FunctionEnd
119
120 Function un.LeaveUnInstfiles
121 ${NSD_GetState} $uninstCertificates $0
122 ${If} $0 <> 0
123 MessageBox mb_ok "Do the uninstall1"
124 ${EndIf}
125 FunctionEnd
107 !endif 126 !endif
108 127
109 !insertmacro MUI_LANGUAGE "German" 128 !insertmacro MUI_LANGUAGE "German"
110 129
111 130

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