提交 e5ba217f authored 作者: Thomas Mueller's avatar Thomas Mueller

Installing the H2 as a service should now work on Windows 7.

上级 ddf48534
...@@ -47,18 +47,18 @@ echo %_REALPATH%%_WRAPPER_BASE%.exe ...@@ -47,18 +47,18 @@ echo %_REALPATH%%_WRAPPER_BASE%.exe
pause pause
goto :end goto :end
:conf
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf
rem rem
:conf
set _WRAPPER_CONF="%~f1" set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_REALPATH%wrapper.conf" set _WRAPPER_CONF="%_REALPATH%wrapper.conf"
:startup
rem rem
rem Start the Wrapper rem Start the Wrapper
rem rem
:startup
"%_WRAPPER_EXE%" -c %_WRAPPER_CONF% "%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
if not errorlevel 1 goto :end if not errorlevel 1 goto :end
pause pause
......
...@@ -10,11 +10,11 @@ echo Process stopped ...@@ -10,11 +10,11 @@ echo Process stopped
pause pause
goto :end goto :end
:start
rem Copyright (c) 1999, 2006 Tanuki Software Inc. rem Copyright (c) 1999, 2006 Tanuki Software Inc.
rem rem
rem Java Service Wrapper general NT service install script rem Java Service Wrapper general NT service install script
rem rem
if "%OS%"=="Windows_NT" goto nt if "%OS%"=="Windows_NT" goto nt
echo This script only works with NT-based versions of Windows. echo This script only works with NT-based versions of Windows.
goto :end goto :end
...@@ -41,21 +41,21 @@ echo %_REALPATH%%_WRAPPER_BASE%.exe ...@@ -41,21 +41,21 @@ echo %_REALPATH%%_WRAPPER_BASE%.exe
pause pause
goto :end goto :end
:conf
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf
rem rem
:conf
set _WRAPPER_CONF="%~f1" set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_REALPATH%wrapper.conf" set _WRAPPER_CONF="%_REALPATH%wrapper.conf"
:startup
rem rem
rem Install the Wrapper as an NT service. rem Install the Wrapper as an NT service.
rem rem
:startup
"%_WRAPPER_EXE%" -i %_WRAPPER_CONF% "%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
if not errorlevel 1 goto :end if not errorlevel 1 goto :end
pause pause
:end :end
popd popd
\ No newline at end of file
...@@ -33,18 +33,18 @@ echo %_REALPATH%%_WRAPPER_BASE%.exe ...@@ -33,18 +33,18 @@ echo %_REALPATH%%_WRAPPER_BASE%.exe
pause pause
goto :end goto :end
:conf
rem rem
rem Find the wrapper.conf rem Find the wrapper.conf
rem rem
:conf
set _WRAPPER_CONF="%~f1" set _WRAPPER_CONF="%~f1"
if not %_WRAPPER_CONF%=="" goto startup if not %_WRAPPER_CONF%=="" goto startup
set _WRAPPER_CONF="%_REALPATH%wrapper.conf" set _WRAPPER_CONF="%_REALPATH%wrapper.conf"
:startup
rem rem
rem Uninstall the Wrapper as an NT service. rem Uninstall the Wrapper as an NT service.
rem rem
:startup
"%_WRAPPER_EXE%" -r %_WRAPPER_CONF% "%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
if not errorlevel 1 goto :end if not errorlevel 1 goto :end
pause pause
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论