w10install/optional/install-hakchi2.cmd
Michael H.G. Schmidt bc7c372d2e MS-Office integrated
2024-09-08 19:53:09 +02:00

31 lines
700 B
Batchfile

@echo off
call check-for-admin
if %ERRORLEVEL% neq 0 exit /b
set CONFIG=config\hakchi2_config.ini
set ZIP=..\software\hakchi2.zip
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
if NOT EXIST %ZIP% (
echo ERROR: %ZIP% not found!
exit /b
)
echo ####### %0 #######
echo killing hakchi2 processes...
taskkill /F /IM hakchi.exe 2>nul
echo unpacking Hakchi2 ...
7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP%
echo copying config ...
mkdir "%ProgramFiles(x86)%\hakchi2\config" 2>nul
copy /Y %CONFIG% "%ProgramFiles(x86)%\hakchi2\config\config.ini"
echo copy startmenu link ...
copy /Y startmenu\HakChi2.lnk %STARTMENU%
echo ####### %0 #######
pause