[PATCH] (issue85) Always install autostart and startmenu only for the installing user

Wald Commits scm-commit at wald.intevation.org
Fri Aug 8 16:41:30 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1407508885 -7200
# Node ID a10eae8ca290f156c6dbaead7fd74d7f3d226d65
# Parent  95e1b2dd9f0eba3c4088671ce1d648ed64dec1e1
(issue85) Always install autostart and startmenu only for the installing user.

diff -r 95e1b2dd9f0e -r a10eae8ca290 packaging/trustbridge.nsi
--- a/packaging/trustbridge.nsi	Fri Aug 08 15:15:08 2014 +0200
+++ b/packaging/trustbridge.nsi	Fri Aug 08 16:41:25 2014 +0200
@@ -80,7 +80,7 @@
 !define MUI_FINISHPAGE_NOAUTOCLOSE
 !define MUI_UNFINISHPAGE_NOAUTOCLOSE
 
-!define MUI_STARTMENUPAGE_REGISTRY_ROOT "SHCTX"
+!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
 !define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\${productname_short}"
 !define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
 
@@ -203,7 +203,7 @@
   WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR
 
 ; Set up autostart
-  WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray"
+  WriteRegStr HKCU "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray"
 
 ; Register logging
   WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryMessageFile" "$INSTDIR\trustbridge.exe"


More information about the Trustbridge-commits mailing list