mirror of
https://github.com/gnh1201/welsonjs.git
synced 2024-11-26 15:31:42 +00:00
Add the service install script
This commit is contained in:
parent
0c5abb4658
commit
dad5c06a1b
34
bin/x86/WelsonJS.Service.InstallLog
Normal file
34
bin/x86/WelsonJS.Service.InstallLog
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
어셈블리 'C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe'을(를) 설치하고 있습니다.
|
||||||
|
영향을 받는 매개 변수:
|
||||||
|
logtoconsole =
|
||||||
|
logfile = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.InstallLog
|
||||||
|
assemblypath = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe
|
||||||
|
WelsonJS.Service 서비스를 설치하고 있습니다...
|
||||||
|
EventLog 소스 WelsonJS.Service을(를) 로그 Application에 만들고 있습니다...
|
||||||
|
어셈블리 'C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe'을(를) 롤백하고 있습니다.
|
||||||
|
영향을 받는 매개 변수:
|
||||||
|
logtoconsole =
|
||||||
|
logfile = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.InstallLog
|
||||||
|
assemblypath = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe
|
||||||
|
이벤트 로그를 소스 WelsonJS.Service의 이전 상태로 복원하고 있습니다.
|
||||||
|
어셈블리 'C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe'을(를) 제거하고 있습니다.
|
||||||
|
영향을 받는 매개 변수:
|
||||||
|
logtoconsole =
|
||||||
|
logfile = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.InstallLog
|
||||||
|
assemblypath = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe
|
||||||
|
EventLog 소스 WelsonJS.Service을(를) 제거하고 있습니다.
|
||||||
|
시스템에서 WelsonJS.Service 서비스를 제거하고 있습니다...
|
||||||
|
WelsonJS.Service 서비스가 시스템에서 제거되었습니다.
|
||||||
|
어셈블리 'C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe'을(를) 설치하고 있습니다.
|
||||||
|
영향을 받는 매개 변수:
|
||||||
|
logtoconsole =
|
||||||
|
logfile = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.InstallLog
|
||||||
|
assemblypath = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe
|
||||||
|
WelsonJS.Service 서비스를 설치하고 있습니다...
|
||||||
|
WelsonJS.Service 서비스가 설치되었습니다.
|
||||||
|
EventLog 소스 WelsonJS.Service을(를) 로그 Application에 만들고 있습니다...
|
||||||
|
어셈블리 'C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe'을(를) 커밋하고 있습니다.
|
||||||
|
영향을 받는 매개 변수:
|
||||||
|
logtoconsole =
|
||||||
|
logfile = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.InstallLog
|
||||||
|
assemblypath = C:\Users\knh94\OneDrive\문서\GitHub\welsonjs\bin\x86\WelsonJS.Service.exe
|
1
bin/x86/WelsonJS.Service.InstallState
Normal file
1
bin/x86/WelsonJS.Service.InstallState
Normal file
File diff suppressed because one or more lines are too long
Binary file not shown.
|
@ -1,3 +1,3 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8"/></startup></configuration>
|
||||||
|
|
Binary file not shown.
|
@ -1,8 +1,7 @@
|
||||||
|
REM bootstrap.bat
|
||||||
|
REM WelsonJS 0.2.7
|
||||||
|
REM https://github.com/gnh1201/welsonjs
|
||||||
@echo off
|
@echo off
|
||||||
rem bootstrap.bat
|
|
||||||
rem WelsonJS 0.2.7
|
|
||||||
rem https://github.com/gnh1201/welsonjs
|
|
||||||
|
|
||||||
pushd %~dp0
|
pushd %~dp0
|
||||||
|
|
||||||
echo [*] Starting pre-configure script...
|
echo [*] Starting pre-configure script...
|
||||||
|
@ -22,9 +21,6 @@ echo [*] Registering WelsonJS Toolkit component...
|
||||||
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /codebase bin\x86\WelsonJS.Toolkit.dll
|
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /codebase bin\x86\WelsonJS.Toolkit.dll
|
||||||
%WINDIR%\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe /codebase bin\x64\WelsonJS.Toolkit.dll
|
%WINDIR%\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe /codebase bin\x64\WelsonJS.Toolkit.dll
|
||||||
|
|
||||||
rem echo [*] Registering WelsonJS Service component...
|
|
||||||
rem %WINDIR%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe bin\x86\WelsonJS.Service.exe
|
|
||||||
|
|
||||||
echo [*] Done.
|
echo [*] Done.
|
||||||
|
|
||||||
cscript app.js bootstrap
|
cscript app.js bootstrap
|
||||||
|
|
31
installService.bat
Normal file
31
installService.bat
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
REM installService.bat
|
||||||
|
REM WelsonJS 0.2.7
|
||||||
|
REM https://github.com/gnh1201/welsonjs
|
||||||
|
@echo off
|
||||||
|
|
||||||
|
REM Set the service name
|
||||||
|
set SERVICE_NAME=WelsonJS.Service
|
||||||
|
|
||||||
|
REM Get the current directory
|
||||||
|
set CURRENT_DIR=%~dp0
|
||||||
|
set CURRENT_DIR=%CURRENT_DIR:~0,-1%
|
||||||
|
|
||||||
|
REM Set the paths
|
||||||
|
set EXE_PATH=%CURRENT_DIR%\bin\x86\WelsonJS.Service.exe
|
||||||
|
set INSTALL_UTIL_PATH=%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe
|
||||||
|
|
||||||
|
REM Uninstall the service
|
||||||
|
"%INSTALL_UTIL_PATH%" /u "%EXE_PATH%"
|
||||||
|
|
||||||
|
REM Install the service
|
||||||
|
"%INSTALL_UTIL_PATH%" "%EXE_PATH%"
|
||||||
|
|
||||||
|
REM Set service to auto start and add the required arguments
|
||||||
|
REM sc config "%SERVICE_NAME%" start= auto
|
||||||
|
REM sc description "%SERVICE_NAME%" "Service installed via InstallUtil.exe"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
echo Service "%SERVICE_NAME%" installed and configured successfully.
|
||||||
|
pause
|
Loading…
Reference in New Issue
Block a user