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

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

上级 687021e2
@echo off
setlocal
pushd "%~dp0"
copy /y /b ..\bin\h2-*.jar ..\bin\h2.jar
fc /b ..\bin\h2-*.jar ..\bin\h2.jar
......@@ -7,7 +8,7 @@ if not errorlevel 1 goto :start
echo Please ensure there is only one h2-*.jar file.
echo Process stopped
pause
goto :eof
goto :end
:start
rem Copyright (c) 1999, 2006 Tanuki Software Inc.
......@@ -22,7 +23,7 @@ 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
goto :end
:nt
rem
......@@ -44,7 +45,7 @@ echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
echo %_REALPATH%%_WRAPPER_BASE%.exe
pause
goto :eof
goto :end
rem
rem Find the wrapper.conf
......@@ -59,6 +60,9 @@ rem Start the Wrapper
rem
:startup
"%_WRAPPER_EXE%" -c %_WRAPPER_CONF%
if not errorlevel 1 goto :eof
if not errorlevel 1 goto :end
pause
:end
popd
@echo off
setlocal
pushd "%~dp0"
copy /y /b ..\bin\h2-*.jar ..\bin\h2.jar
fc /b ..\bin\h2-*.jar ..\bin\h2.jar
......@@ -7,7 +8,7 @@ if not errorlevel 1 goto :start
echo Please ensure there is only one h2-*.jar file.
echo Process stopped
pause
goto :eof
goto :end
rem Copyright (c) 1999, 2006 Tanuki Software Inc.
rem
......@@ -16,7 +17,7 @@ rem
if "%OS%"=="Windows_NT" goto nt
echo This script only works with NT-based versions of Windows.
goto :eof
goto :end
:nt
rem
......@@ -38,7 +39,7 @@ echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
echo %_REALPATH%%_WRAPPER_BASE%.exe
pause
goto :eof
goto :end
rem
rem Find the wrapper.conf
......@@ -53,6 +54,8 @@ rem Install the Wrapper as an NT service.
rem
:startup
"%_WRAPPER_EXE%" -i %_WRAPPER_CONF%
if not errorlevel 1 goto :eof
if not errorlevel 1 goto :end
pause
:end
popd
@echo off
setlocal
pushd "%~dp0"
rem Copyright (c) 1999, 2006 Tanuki Software Inc.
rem
......@@ -8,7 +9,7 @@ rem
if "%OS%"=="Windows_NT" goto nt
echo This script only works with NT-based versions of Windows.
goto :eof
goto :end
:nt
rem
......@@ -30,7 +31,7 @@ echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-32.exe
echo %_REALPATH%%_WRAPPER_BASE%-windows-x86-64.exe
echo %_REALPATH%%_WRAPPER_BASE%.exe
pause
goto :eof
goto :end
rem
rem Find the wrapper.conf
......@@ -45,6 +46,8 @@ rem Uninstall the Wrapper as an NT service.
rem
:startup
"%_WRAPPER_EXE%" -r %_WRAPPER_CONF%
if not errorlevel 1 goto :eof
if not errorlevel 1 goto :end
pause
:end
popd
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论