Add NT service as an installer option on Windows

This commit is contained in:
HungryHobo
2011-03-12 21:53:55 +00:00
parent 3f141e72b8
commit 21a3657da5
3 changed files with 32 additions and 0 deletions

View File

@@ -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>

View File

@@ -31,5 +31,6 @@ rem
:startup
"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
if not errorlevel 1 goto :eof
if %2=="--nopause" goto :eof
pause

View File

@@ -31,5 +31,6 @@ rem
:startup
"%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
if not errorlevel 1 goto :eof
if "%2"=="--nopause" goto :eof
pause