🐛[bugfix] installer : update処理のパスを修正

This commit is contained in:
misyaguziya
2023-11-01 06:00:51 +09:00
parent 9951398c36
commit 2f27ae3464
3 changed files with 15 additions and 12 deletions

View File

@@ -1,8 +1,9 @@
@if not "%~0"=="%~dp0.\%~nx0" start /min cmd /c,"%~dp0.\%~nx0" %* & goto :eof
set name=%1
set path=%~dp0
set local_path=%~dp0
taskkill /im %name% /F
START "" %path%/%name%
ping -n 2 127.0.0.1 > nul
START "" %local_path%%name%
del /f "%~dp0%~nx0"

View File

@@ -4,17 +4,17 @@ set exe_name=%1
set folder_name=%2
set folder_tmp=%3
set restart=%4
set path=%~dp0
set local_path=%~dp0
taskkill /im %exe_name% /F
ping -n 2 127.0.0.1 > nul
del /f %exe_name%
rmdir /s /q %folder_name%
move /Y %exe_tmp_name%\* .\
rmdir /s /q %exe_tmp_name%
del /f %local_path%%exe_name%
rmdir /s /q %local_path%%folder_name%
xcopy %local_path%%folder_tmp% %local_path% /E /I
rmdir /s /q %local_path%%folder_tmp%
if %restart% == True (
START "" %path%/%exe_name%
START "" %local_path%%exe_name%
)
pause
del /f "%~dp0%~nx0"