mirror of
https://github.com/safing/portmaster
synced 2025-09-10 23:14:35 +00:00
[WIP] Fix minor bugs
This commit is contained in:
parent
a79be8b6a9
commit
a8517cd65f
6 changed files with 21 additions and 17 deletions
|
@ -25,11 +25,15 @@
|
|||
!macroend
|
||||
|
||||
!macro NSIS_HOOK_POSTINSTALL
|
||||
ExecWait 'sc.exe create PortmasterCore binPath= "$INSTDIR\portmaster-core.exe" --data="$COMMONPROGRAMDATA\Portmaster\data"'
|
||||
ExecWait 'sc.exe create PortmasterCore binPath= "$INSTDIR\portmaster-core.exe" --data="$COMMONPROGRAMDATA\Portmaster\data"' $0
|
||||
IntCmp $0 0 +2
|
||||
MessageBox MB_OK "Failed to create PortmasterCore service."
|
||||
!macroend
|
||||
|
||||
!macro NSIS_HOOK_PREUNINSTALL
|
||||
ExecWait 'sc.exe stop PortmasterCore'
|
||||
ExecWait 'sc.exe delete PortmasterCore'
|
||||
ExecWait 'sc.exe stop PortmasterCore' $0
|
||||
; Ignore errors if the service is not running
|
||||
ExecWait 'sc.exe delete PortmasterCore' $0
|
||||
; Ignore errors if the service does not exist
|
||||
!macroend
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue