openHAB install after windows service feature install

This commit is contained in:
2019-11-08 16:28:55 -06:00
commit 6a5b2422b6
973 changed files with 22607 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
@echo off
REM ------------------------------------------------------------------------
REM Licensed to the Apache Software Foundation (ASF) under one or more
REM contributor license agreements. See the NOTICE file distributed with
REM this work for additional information regarding copyright ownership.
REM The ASF licenses this file to You under the Apache License, Version 2.0
REM (the "License"); you may not use this file except in compliance with
REM the License. You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
REM See the License for the specific language governing permissions and
REM limitations under the License.
REM ------------------------------------------------------------------------
setlocal
set JAVA_HOME=C:\Program Files\Java\jre1.8.0_231
set APP_NAME=openHAB2
set APP_LONG_NAME=openHAB2
set APP_BASE=C:\openhab-2.4.0\userdata
set APP_ETC=C:\openhab-2.4.0\userdata\etc
if ""%1"" == ""run"" goto doRun
if ""%1"" == ""install"" goto doInstall
if ""%1"" == ""remove"" goto doRemove
echo Usage: karaf-service ( commands ... )
echo commands:
echo run Start %APP_NAME% in the current console
echo install Install %APP_NAME% as a Windows service
echo remove Remove the %APP_NAME% Windows service
goto end
:doRun
"%APP_BASE%\bin\%APP_NAME%-wrapper.exe" -c "%APP_ETC%\%APP_NAME%-wrapper.conf"
goto end
:doInstall
"%APP_BASE%\bin\%APP_NAME%-wrapper.exe" -i "%APP_ETC%\%APP_NAME%-wrapper.conf"
goto end
:doRemove
"%APP_BASE%\bin\%APP_NAME%-wrapper.exe" -r "%APP_ETC%\%APP_NAME%-wrapper.conf"
goto end
:end
if not "%PAUSE%" == "" pause

Binary file not shown.