[WIP] Fix winodws service installer

This commit is contained in:
Vladimir Stoilov 2024-12-03 17:27:33 +02:00
parent b52cde15c5
commit d15ede9f53
No known key found for this signature in database
GPG key ID: 2F190B67A43A81AF
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@
!macroend !macroend
!macro NSIS_HOOK_POSTINSTALL !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"'
!macroend !macroend
!macro NSIS_HOOK_PREUNINSTALL !macro NSIS_HOOK_PREUNINSTALL

View file

@ -3,7 +3,7 @@
<Fragment> <Fragment>
<CustomAction Id="InstallPortmasterService" <CustomAction Id="InstallPortmasterService"
Directory="INSTALLDIR" Directory="INSTALLDIR"
ExeCommand="sc.exe create PortmasterCore binPath= &quot;[INSTALLDIR]portmaster-core.exe --data [CommonAppDataFolder]Portmaster\data&quot;" ExeCommand="sc.exe create PortmasterCore binPath= &quot;[INSTALLDIR]portmaster-core.exe&quot;"
Execute="commit" Execute="commit"
Return="check" Return="check"
Impersonate="no" Impersonate="no"