comparison packaging/trustbridge.nsi @ 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 eee419ad81b8
children 8ac2d9b0668d
comparison
equal deleted inserted replaced
869:b1df9621c89c 870:e93ae5233217
194 ; Code below is not run on updates 194 ; Code below is not run on updates
195 StrCmp $is_update '1' done 195 StrCmp $is_update '1' done
196 196
197 WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR 197 WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR
198 198
199 WriteRegStr SHCTX "Software\${productname_short}" "" $INSTDIR 199 ; Set up autostart
200 WriteRegStr SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge" "$INSTDIR\trustbridge.exe --tray"
200 201
201 ; Register logging 202 ; Register logging
202 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryMessageFile" "$INSTDIR\trustbridge.exe" 203 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "CategoryMessageFile" "$INSTDIR\trustbridge.exe"
203 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "EventMessageFile" "$INSTDIR\trustbridge.exe" 204 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "EventMessageFile" "$INSTDIR\trustbridge.exe"
204 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "ParameterMessageFile" "$INSTDIR\trustbridge.exe" 205 WriteRegStr SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" "ParameterMessageFile" "$INSTDIR\trustbridge.exe"
253 Delete "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk" 254 Delete "$SMPROGRAMS\$StartMenuFolder\${productname}.lnk"
254 RMDir "$SMPROGRAMS\$StartMenuFolder" 255 RMDir "$SMPROGRAMS\$StartMenuFolder"
255 256
256 DeleteRegKey /ifempty SHCTX "Software\${productname_short}" 257 DeleteRegKey /ifempty SHCTX "Software\${productname_short}"
257 258
259 ; Unregister autostart
260 DeleteRegValue SHCTX "Software\Microsoft\Windows\CurrentVersion\Run" "TrustBridge"
261
258 ; Unregister logging 262 ; Unregister logging
259 DeleteRegKey SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}" 263 DeleteRegKey SHCTX "System\CurrentControlSet\services\eventlog\Application\${productname_short}"
260 264
261 ; Remove uninstaller 265 ; Remove uninstaller
262 DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}" 266 DeleteRegKey SHCTX "Software\Microsoft\Windows\CurrentVersion\Uninstall\${productname_short}"

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