# HG changeset patch # User Andre Heinecke # Date 1403528171 -7200 # Node ID 9a18f096129db70cbfb76b6c56de8f00f8ea4f5c # Parent edf269b6e499500ba6c34811e4d9e0cfb6ff73fc Add registry entries for logging. diff -r edf269b6e499 -r 9a18f096129d packaging/trustbridge.nsi --- a/packaging/trustbridge.nsi Mon Jun 23 13:05:08 2014 +0200 +++ b/packaging/trustbridge.nsi Mon Jun 23 14:56:11 2014 +0200 @@ -160,8 +160,14 @@ WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR -; Set up autostart - WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray" + WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR + +; Register logging + WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryMessageFile" "$INSTDIR\trustbridge.exe" + WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "EventMessageFile" "$INSTDIR\trustbridge.exe" + WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "ParameterMessageFile" "$INSTDIR\trustbridge.exe" + WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "TypesSupported" 5 + WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryCount" 3 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application