comparison packaging/trustbridge.nsi @ 632:9a18f096129d

Add registry entries for logging.
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 23 Jun 2014 14:56:11 +0200
parents a4e75d90d3f6
children 02214ef01bfa
comparison
equal deleted inserted replaced
631:edf269b6e499 632:9a18f096129d
158 ; Code below is not run on updates 158 ; Code below is not run on updates
159 StrCmp $is_update '1' done 159 StrCmp $is_update '1' done
160 160
161 WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR 161 WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR
162 162
163 ; Set up autostart 163 WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR
164 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray" 164
165 ; Register logging
166 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryMessageFile" "$INSTDIR\trustbridge.exe"
167 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "EventMessageFile" "$INSTDIR\trustbridge.exe"
168 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "ParameterMessageFile" "$INSTDIR\trustbridge.exe"
169 WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "TypesSupported" 5
170 WriteRegDword SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryCount" 3
165 171
166 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application 172 !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
167 173
168 ;Create shortcuts 174 ;Create shortcuts
169 CreateDirectory "$SMPROGRAMS\$StartMenuFolder" 175 CreateDirectory "$SMPROGRAMS\$StartMenuFolder"

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