mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Testing wrapping the executable in cmd
This commit is contained in:
parent
0281d06b01
commit
be29592254
2 changed files with 8 additions and 1 deletions
|
@ -55,6 +55,10 @@
|
|||
|
||||
<Component Id='MainExecutable' Guid='e645aa06-8bbc-40d6-8d3c-73b4f5b76fd7' Win64="$(var.Win64)">
|
||||
<File Id='NavidromeExe' Name='Navidrome.exe' DiskId='1' Source='navidrome.exe' KeyPath='yes' />
|
||||
</Component>
|
||||
|
||||
<Component Id="Wrapper" Guid='c5d1d905-792f-45b0-9d42-becb6784eaa9' Win64="$(var.Win64)">
|
||||
<File Id='Wrapper' Name='wrapper.cmd' DiskId='1' Source='wrapper.cmd' KeyPath='yes' />
|
||||
<ServiceInstall
|
||||
Description='Navidrome is a self-hosted music server and streamer'
|
||||
ErrorControl='ignore'
|
||||
|
@ -63,7 +67,7 @@
|
|||
Start='auto'
|
||||
Type='ownProcess'
|
||||
Vital='yes'
|
||||
Arguments='service execute --configfile "[INSTALLDIR]navidrome.toml"'
|
||||
Arguments=''
|
||||
/>
|
||||
<ServiceControl Id='StartNavidromeService' Start='install' Stop='both' Remove='uninstall' Name='$(var.ProductName)' Wait='yes' />
|
||||
</Component>
|
||||
|
@ -88,6 +92,7 @@
|
|||
<ComponentRef Id='README.mdFile' />
|
||||
<ComponentRef Id='Configuration'/>
|
||||
<ComponentRef Id='MainExecutable' />
|
||||
<ComponentRef Id='Wrapper' />
|
||||
</Feature>
|
||||
</Product>
|
||||
</Wix>
|
||||
|
|
2
wix/wrapper.cmd
Normal file
2
wix/wrapper.cmd
Normal file
|
@ -0,0 +1,2 @@
|
|||
@echo off
|
||||
navidrome.exe service execute --configfile "C:\Program Files\Navidrome\navidrome.toml" > logfile.log 2>&1
|
Loading…
Add table
Add a link
Reference in a new issue