Mercurial > trustbridge
comparison packaging/trustbridge.nsi @ 794:fdc15f0cfdd8
(issue61) NSIS Write uninstall information and make URL configurable.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 15 Jul 2014 12:03:45 +0200 |
parents | 6bb769d3cdc1 |
children | 71799e101755 |
comparison
equal
deleted
inserted
replaced
793:6bb769d3cdc1 | 794:fdc15f0cfdd8 |
---|---|
88 Klicken Sie auf 'Fertig stellen', um den Installations-Assistenten\ | 88 Klicken Sie auf 'Fertig stellen', um den Installations-Assistenten\ |
89 zu schließen." | 89 zu schließen." |
90 ;!define MUI_FINISHPAGE_RUN $INSTDIR\trustbridge.exe | 90 ;!define MUI_FINISHPAGE_RUN $INSTDIR\trustbridge.exe |
91 ;!define MUI_FINISHPAGE_RUN_TEXT "Anwendung starten" | 91 ;!define MUI_FINISHPAGE_RUN_TEXT "Anwendung starten" |
92 ;!define MUI_FINISHPAGE_RUN_FUNCTION RunAsUser | 92 ;!define MUI_FINISHPAGE_RUN_FUNCTION RunAsUser |
93 !define MUI_FINISHPAGE_LINK "Mehr unter http://www.bsi.bund.de" | 93 !define MUI_FINISHPAGE_LINK "Mehr unter ${info_url}" |
94 !define MUI_FINISHPAGE_LINK_LOCATION "http://www.bsi.bund.de" | 94 !define MUI_FINISHPAGE_LINK_LOCATION "${info_url}" |
95 | 95 |
96 !insertmacro MUI_PAGE_WELCOME | 96 !insertmacro MUI_PAGE_WELCOME |
97 !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder | 97 !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder |
98 !insertmacro MUI_PAGE_DIRECTORY | 98 !insertmacro MUI_PAGE_DIRECTORY |
99 !insertmacro MUI_PAGE_INSTFILES | 99 !insertmacro MUI_PAGE_INSTFILES |
164 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "EventMessageFile" "$INSTDIR\trustbridge.exe" | 164 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "EventMessageFile" "$INSTDIR\trustbridge.exe" |
165 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "ParameterMessageFile" "$INSTDIR\trustbridge.exe" | 165 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "ParameterMessageFile" "$INSTDIR\trustbridge.exe" |
166 WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "TypesSupported" 5 | 166 WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "TypesSupported" 5 |
167 WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryCount" 3 | 167 WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryCount" 3 |
168 | 168 |
169 ; Register Uninstaller | |
170 | |
171 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ | |
172 "DisplayName" "${productname}" | |
173 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ | |
174 "DisplayIcon" "$\"$INSTDIR\trustbridge.exe$\"" | |
175 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ | |
176 "DisplayVersion" "${version_number}" | |
177 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ | |
178 "Publisher" "${company}" | |
179 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ | |
180 "URLInfoAbout" "${info_url}" | |
181 WriteRegDword SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ | |
182 "EstimatedSize" "${size}" | |
183 | |
184 | |
185 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ | |
186 "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" | |
187 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" \ | |
188 "QuietUninstallString" "$\"$INSTDIR\uninstall.exe$\" /S" | |
189 | |
169 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application | 190 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application |
170 | 191 |
171 ;Create shortcuts | 192 ;Create shortcuts |
172 CreateDirectory "$SMPROGRAMS\$StartMenuFolder" | 193 CreateDirectory "$SMPROGRAMS\$StartMenuFolder" |
173 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk" "$INSTDIR\trustbridge.exe" | 194 CreateShortCut "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk" "$INSTDIR\trustbridge.exe" |
188 Delete "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk" | 209 Delete "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk" |
189 RMDir "$SMPROGRAMS\$StartMenuFolder" | 210 RMDir "$SMPROGRAMS\$StartMenuFolder" |
190 | 211 |
191 DeleteRegKey /ifempty SHCTX "Software\${productname_short}" | 212 DeleteRegKey /ifempty SHCTX "Software\${productname_short}" |
192 | 213 |
214 ; Unregister logging | |
215 DeleteRegKey SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" | |
216 | |
217 ; Remove uninstaller | |
218 DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" | |
193 SectionEnd | 219 SectionEnd |