
hopefully any other affected *nix systems) now properly discards non- essential directories after installation. * Support for Win9x in the installer and postinstall.bat. * Changed the name of the default installation directory on all platforms from "I2P" to "i2p" in the installer. * Changed "wrapper.conf" to "wrapper.config" for naming consistency with the other configuration files.
41 lines
817 B
Batchfile
41 lines
817 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
rem
|
|
rem Java Service Wrapper general startup script
|
|
rem
|
|
|
|
rem
|
|
rem Resolve the real path of the Wrapper.exe
|
|
rem For non NT systems, the _REALPATH and _WRAPPER_CONF values
|
|
rem can be hard-coded below and the following test removed.
|
|
rem
|
|
if "%OS%"=="Windows_NT" goto nt
|
|
echo This script only works with NT-based versions of Windows.
|
|
goto :eof
|
|
|
|
:nt
|
|
rem
|
|
rem Find the application home.
|
|
rem
|
|
rem %~dp0 is location of current script under NT
|
|
set _REALPATH=%~dp0
|
|
set _WRAPPER_EXE=%_REALPATH%I2Psvc.exe
|
|
|
|
rem
|
|
rem Find the wrapper.conf
|
|
rem
|
|
:conf
|
|
set _WRAPPER_CONF="%~f1"
|
|
if not %_WRAPPER_CONF%=="" goto startup
|
|
set _WRAPPER_CONF="%_REALPATH%wrapper.config"
|
|
|
|
rem
|
|
rem Start the Wrapper
|
|
rem
|
|
:startup
|
|
"%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
|
|
if not errorlevel 1 goto :eof
|
|
pause
|
|
|