Mercurial > trustbridge
comparison packaging/trustbridge.nsi @ 1343:0971c7214e79
(issue160) Change install prefix to include BSI directory
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Tue, 28 Oct 2014 11:16:32 +0100 |
parents | c7349696d812 |
children | 00ba9a4c422d |
comparison
equal
deleted
inserted
replaced
1342:dab626e44347 | 1343:0971c7214e79 |
---|---|
57 ; General | 57 ; General |
58 | 58 |
59 ; Define Name, File and Installdir of Installer | 59 ; Define Name, File and Installdir of Installer |
60 Name "${productname}" | 60 Name "${productname}" |
61 OutFile "${setupname}" | 61 OutFile "${setupname}" |
62 InstallDir "$PROGRAMFILES\${productname_short}" | 62 InstallDir "$PROGRAMFILES\BSI\${productname_short}" |
63 BrandingText "${company} - ${productname}" | 63 BrandingText "${company} - ${productname}" |
64 | 64 |
65 ;-------------------------------- | 65 ;-------------------------------- |
66 ; Interface Settings | 66 ; Interface Settings |
67 | 67 |
87 Achtung: Dies ist eine Testversion!" | 87 Achtung: Dies ist eine Testversion!" |
88 | 88 |
89 !define MUI_FINISHPAGE_NOAUTOCLOSE | 89 !define MUI_FINISHPAGE_NOAUTOCLOSE |
90 | 90 |
91 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX" | 91 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX" |
92 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${productname_short}" | 92 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\BSI\${productname_short}" |
93 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" | 93 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder" |
94 | 94 |
95 | 95 |
96 ;-------------------------------- | 96 ;-------------------------------- |
97 ; Pages | 97 ; Pages |
225 !endif | 225 !endif |
226 | 226 |
227 ; Code below is not run on updates | 227 ; Code below is not run on updates |
228 StrCmp $is_update '1' done | 228 StrCmp $is_update '1' done |
229 | 229 |
230 WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR | 230 WriteRegStr SHCTX "Software\BSI\${productname_short}" "" $INSTDIR |
231 | 231 |
232 ; Set up autostart | 232 ; Set up autostart |
233 WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray" | 233 WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray" |
234 | 234 |
235 ; Register logging | 235 ; Register logging |
334 Delete "$INSTDIR\Uninstall.exe" | 334 Delete "$INSTDIR\Uninstall.exe" |
335 RMDir "$INSTDIR" | 335 RMDir "$INSTDIR" |
336 | 336 |
337 !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder | 337 !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder |
338 | 338 |
339 DeleteRegValue SHCTX "Software\${productname_short}" "Start Menu Folder" | 339 DeleteRegValue SHCTX "Software\BSI\${productname_short}" "Start Menu Folder" |
340 | 340 |
341 DeleteRegKey /ifempty SHCTX "Software\${productname_short}" | 341 DeleteRegKey /ifempty SHCTX "Software\BSI\${productname_short}" |
342 | 342 |
343 ; Unregister autostart | 343 ; Unregister autostart |
344 DeleteRegValue SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" | 344 DeleteRegValue SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" |
345 | 345 |
346 ; Unregister logging | 346 ; Unregister logging |