mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 07:21:43 +00:00
Update installService.bat
This commit is contained in:
parent
dad5c06a1b
commit
66879f229a
|
@ -15,6 +15,7 @@ set EXE_PATH=%CURRENT_DIR%\bin\x86\WelsonJS.Service.exe
|
||||||
set INSTALL_UTIL_PATH=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe
|
set INSTALL_UTIL_PATH=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe
|
||||||
|
|
||||||
REM Uninstall the service
|
REM Uninstall the service
|
||||||
|
sc stop "%SERVICE_NAME%"
|
||||||
"%INSTALL_UTIL_PATH%" /u "%EXE_PATH%"
|
"%INSTALL_UTIL_PATH%" /u "%EXE_PATH%"
|
||||||
|
|
||||||
REM Install the service
|
REM Install the service
|
||||||
|
@ -28,4 +29,7 @@ REM Add parameters to the ImagePath registry key
|
||||||
REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\%SERVICE_NAME%" /v ImagePath /t REG_EXPAND_SZ /d "\"%EXE_PATH%\" --working-directory=%CURRENT_DIR% --script-name=defaultService" /f
|
REG ADD "HKLM\SYSTEM\CurrentControlSet\Services\%SERVICE_NAME%" /v ImagePath /t REG_EXPAND_SZ /d "\"%EXE_PATH%\" --working-directory=%CURRENT_DIR% --script-name=defaultService" /f
|
||||||
|
|
||||||
echo Service "%SERVICE_NAME%" installed and configured successfully.
|
echo Service "%SERVICE_NAME%" installed and configured successfully.
|
||||||
|
|
||||||
|
sc start "%SERVICE_NAME%"
|
||||||
|
echo Service "%SERVICE_NAME%" started.
|
||||||
pause
|
pause
|
Loading…
Reference in New Issue
Block a user