forked from I2P_Developers/i2p.i2p
Add NT service as an installer option on Windows
This commit is contained in:
@@ -105,6 +105,7 @@
|
||||
<panels>
|
||||
<panel classname="HelloPanel"/>
|
||||
<panel classname="InfoPanel"/>
|
||||
<panel classname="PacksPanel"><os family="windows" /></panel>
|
||||
<panel classname="TargetPanel"/>
|
||||
<panel classname="InstallPanel"/>
|
||||
<panel classname="ShortcutPanel"><os family="windows" /></panel>
|
||||
@@ -178,6 +179,35 @@
|
||||
<args><arg value="$INSTALL_PATH" /></args></executable>
|
||||
|
||||
</pack>
|
||||
|
||||
<pack name="Windows Service" required="no">
|
||||
<description>Automatically start I2P in the background</description>
|
||||
<os family="windows" />
|
||||
<!--
|
||||
<executable targetfile="$INSTALL_PATH/install_i2p_service_winnt.bat" stage="postinstall" failure="warn" keep="true" />
|
||||
-->
|
||||
<executable targetfile="$INSTALL_PATH/install_i2p_service_winnt.bat" stage="postinstall" failure="warn" keep="true">
|
||||
<args>
|
||||
<arg value="$INSTALL_PATH\wrapper.config" />
|
||||
<arg value="--nopause" />
|
||||
</args>
|
||||
</executable>
|
||||
<executable targetfile="$INSTALL_PATH/I2Psvc.exe" stage="postinstall" failure="warn" keep="true">
|
||||
<args>
|
||||
<arg value="-t" />
|
||||
<arg value="$INSTALL_PATH\wrapper.config" />
|
||||
</args>
|
||||
</executable>
|
||||
<!--
|
||||
<executable targetfile="$INSTALL_PATH/uninstall_i2p_service_winnt.bat" stage="uninstall" failure="warn" keep="true" />
|
||||
-->
|
||||
<executable targetfile="$INSTALL_PATH/uninstall_i2p_service_winnt.bat" stage="uninstall" failure="warn" keep="true">
|
||||
<args>
|
||||
<arg value="$INSTALL_PATH\wrapper.config" />
|
||||
<arg value="--nopause" />
|
||||
</args>
|
||||
</executable>
|
||||
</pack>
|
||||
</packs>
|
||||
|
||||
</installation>
|
||||
|
@@ -31,5 +31,6 @@ rem
|
||||
:startup
|
||||
"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
|
||||
if not errorlevel 1 goto :eof
|
||||
if %2=="--nopause" goto :eof
|
||||
pause
|
||||
|
||||
|
@@ -31,5 +31,6 @@ rem
|
||||
:startup
|
||||
"%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
|
||||
if not errorlevel 1 goto :eof
|
||||
if "%2"=="--nopause" goto :eof
|
||||
pause
|
||||
|
||||
|
Reference in New Issue
Block a user