diff --git a/bin/x86/WelsonJS.Service.InstallLog b/bin/x86/WelsonJS.Service.InstallLog new file mode 100644 index 0000000..7f56e21 --- /dev/null +++ b/bin/x86/WelsonJS.Service.InstallLog @@ -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 diff --git a/bin/x86/WelsonJS.Service.InstallState b/bin/x86/WelsonJS.Service.InstallState new file mode 100644 index 0000000..d0d1367 --- /dev/null +++ b/bin/x86/WelsonJS.Service.InstallState @@ -0,0 +1 @@ +0.7223_reserved_nestedSavedStates_reserved_lastInstallerAttempted0.72230.7247AccountLocalSystem-10.7247installedtrue0.7267logExistsalreadyRegisteredbaseInstalledAndPlatformOKtrue-1falsetrue010 \ No newline at end of file diff --git a/bin/x86/WelsonJS.Service.exe b/bin/x86/WelsonJS.Service.exe index 2338e47..a587801 100644 Binary files a/bin/x86/WelsonJS.Service.exe and b/bin/x86/WelsonJS.Service.exe differ diff --git a/bin/x86/WelsonJS.Service.exe.config b/bin/x86/WelsonJS.Service.exe.config index fcd0c93..3e0e37c 100644 --- a/bin/x86/WelsonJS.Service.exe.config +++ b/bin/x86/WelsonJS.Service.exe.config @@ -1,3 +1,3 @@ - + diff --git a/bin/x86/WelsonJS.Service.pdb b/bin/x86/WelsonJS.Service.pdb index a0fe90c..c113873 100644 Binary files a/bin/x86/WelsonJS.Service.pdb and b/bin/x86/WelsonJS.Service.pdb differ diff --git a/bootstrap.bat b/bootstrap.bat index 754d47f..e2ca635 100644 --- a/bootstrap.bat +++ b/bootstrap.bat @@ -1,8 +1,7 @@ +REM bootstrap.bat +REM WelsonJS 0.2.7 +REM https://github.com/gnh1201/welsonjs @echo off -rem bootstrap.bat -rem WelsonJS 0.2.7 -rem https://github.com/gnh1201/welsonjs - pushd %~dp0 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\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. cscript app.js bootstrap diff --git a/installService.bat b/installService.bat new file mode 100644 index 0000000..f2ac906 --- /dev/null +++ b/installService.bat @@ -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 \ No newline at end of file