w10install/optional/unpack-hakchi2.cmd

33 lines
666 B
Batchfile
Raw Normal View History

2021-03-10 23:09:16 +01:00
@echo off
set TOOLS=c:\tools
set CONFIG=config\hakchi2_config.ini
set ZIP=..\software\hakchi2.zip
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 ...
%TOOLS%\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 desktop link ...
copy /Y desktop\HakChi2.lnk "%PUBLIC%\Desktop"
rem refresh desktop (W10 style)
ie4uinit.exe -show
echo ####### %0 #######
pause