mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-07 12:16:04 +00:00
Update installService.bat
This commit is contained in:
parent
62ab354674
commit
e659c8daf2
|
@ -79,7 +79,7 @@
|
||||||
this.btnOpenWithExplorer.Image = global::WelsonJS.Launcher.Properties.Resources.icon_directory_32;
|
this.btnOpenWithExplorer.Image = global::WelsonJS.Launcher.Properties.Resources.icon_directory_32;
|
||||||
this.btnOpenWithExplorer.Location = new System.Drawing.Point(327, 364);
|
this.btnOpenWithExplorer.Location = new System.Drawing.Point(327, 364);
|
||||||
this.btnOpenWithExplorer.Name = "btnOpenWithExplorer";
|
this.btnOpenWithExplorer.Name = "btnOpenWithExplorer";
|
||||||
this.btnOpenWithExplorer.Size = new System.Drawing.Size(150, 60);
|
this.btnOpenWithExplorer.Size = new System.Drawing.Size(232, 60);
|
||||||
this.btnOpenWithExplorer.TabIndex = 3;
|
this.btnOpenWithExplorer.TabIndex = 3;
|
||||||
this.btnOpenWithExplorer.Text = "Open with Explorer";
|
this.btnOpenWithExplorer.Text = "Open with Explorer";
|
||||||
this.btnOpenWithExplorer.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
this.btnOpenWithExplorer.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
|
||||||
|
|
|
@ -11,14 +11,7 @@ set CURRENT_DIR=%~dp0
|
||||||
set CURRENT_DIR=%CURRENT_DIR:~0,-1%
|
set CURRENT_DIR=%CURRENT_DIR:~0,-1%
|
||||||
|
|
||||||
REM Set the paths
|
REM Set the paths
|
||||||
if "%PROCESSOR_ARCHITECTURE%"=="x86" (
|
set EXE_PATH=%CURRENT_DIR%\bin\x86\WelsonJS.Service.exe
|
||||||
set EXE_PATH=%CURRENT_DIR%\bin\x86\WelsonJS.Service.exe
|
|
||||||
) else if "%PROCESSOR_ARCHITECTURE%"=="AMD64" (
|
|
||||||
set EXE_PATH=%CURRENT_DIR%\bin\x64\WelsonJS.Service.exe
|
|
||||||
) else (
|
|
||||||
echo Unsupported platform: %PROCESSOR_ARCHITECTURE%
|
|
||||||
exit /b 1
|
|
||||||
)
|
|
||||||
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
|
||||||
|
@ -39,4 +32,5 @@ echo Service "%SERVICE_NAME%" installed and configured successfully.
|
||||||
|
|
||||||
sc start "%SERVICE_NAME%"
|
sc start "%SERVICE_NAME%"
|
||||||
echo Service "%SERVICE_NAME%" started.
|
echo Service "%SERVICE_NAME%" started.
|
||||||
pause
|
|
||||||
|
pause
|
||||||
|
|
Loading…
Reference in New Issue
Block a user