diff 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
line wrap: on
line diff
--- a/packaging/trustbridge.nsi	Tue Oct 28 11:11:27 2014 +0100
+++ b/packaging/trustbridge.nsi	Tue Oct 28 11:16:32 2014 +0100
@@ -59,7 +59,7 @@
 ; Define Name, File and Installdir of Installer
 Name "${productname}"
 OutFile "${setupname}"
-InstallDir "$PROGRAMFILES\${productname_short}"
+InstallDir "$PROGRAMFILES\BSI\${productname_short}"
 BrandingText "${company} - ${productname}"
 
 ;--------------------------------
@@ -89,7 +89,7 @@
 !define MUI_FINISHPAGE_NOAUTOCLOSE
 
 !define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX"
-!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${productname_short}"
+!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\BSI\${productname_short}"
 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
 
 
@@ -227,7 +227,7 @@
 ; Code below is not run on updates
   StrCmp $is_update '1' done
 
-  WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR
+  WriteRegStr SHCTX "Software\BSI\${productname_short}" "" $INSTDIR
 
 ; Set up autostart
   WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray"
@@ -336,9 +336,9 @@
 
   !insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
 
-  DeleteRegValue SHCTX "Software\${productname_short}" "Start Menu Folder"
+  DeleteRegValue SHCTX "Software\BSI\${productname_short}" "Start Menu Folder"
 
-  DeleteRegKey /ifempty SHCTX "Software\${productname_short}"
+  DeleteRegKey /ifempty SHCTX "Software\BSI\${productname_short}"
 
 ; Unregister autostart
   DeleteRegValue SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge"

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