changeset 870:e93ae5233217

Readd autostart This was accidentally removed in r632
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 06 Aug 2014 11:55:02 +0200
parents b1df9621c89c
children 4efd6378c001
files packaging/trustbridge.nsi
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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}" 
 

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