[PATCH] Readd autostart

Wald Commits scm-commit at wald.intevation.org
Wed Aug 6 11:55:07 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1407318902 -7200
# Node ID e93ae52332172398bb834b63e2dd5368c0bee693
# Parent  b1df9621c89c48a14fab57871f573bc7cec8c4b6
Readd autostart

    This was accidentally removed in r632

diff -r b1df9621c89c -r e93ae5233217 packaging/trustbridge.nsi
--- a/packaging/trustbridge.nsi	Tue Aug 05 17:45:03 2014 +0200
+++ b/packaging/trustbridge.nsi	Wed Aug 06 11:55:02 2014 +0200
@@ -196,7 +196,8 @@
 
   WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR
 
-  WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR
+; Set up autostart
+  WriteRegStr SHCTX "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"
@@ -255,6 +256,9 @@
 
   DeleteRegKey /ifempty SHCTX "Software\${productname_short}"
 
+; Unregister autostart
+  DeleteRegValue SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge"
+
 ; Unregister logging
   DeleteRegKey SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" 
 


More information about the Trustbridge-commits mailing list