Skip to content

Commit

Permalink
fix: auto install service and remove on uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
go-compile committed Jul 16, 2023
1 parent 9527b7f commit 586326d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/wix/localrelay.template.wxs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@
<Component Id="ProductComponent">
<File Id="localrelay.exe" KeyPath="yes"
Source="dist\cli_windows_amd64_v1\localrelay.exe"></File>
<ServiceInstall Id="ServiceComponent" Name="localrelayd"
DisplayName="localrelayd" Type="ownProcess" Start="auto"
ErrorControl="normal"
Description="Localrelay daemon relay runner"
Arguments="start-service-daemon"></ServiceInstall>
<ServiceControl Id="ServiceControl" Name="localrelayd" Remove="uninstall"
Stop="both" Wait="yes"></ServiceControl>
</Component>
<Component Id="MiscComponent">
<File Id="LICENSE"
Expand Down

0 comments on commit 586326d

Please sign in to comment.