2021-02-28 15:24:20 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set CONFIG=config\install-xnview.txt
|
|
|
|
set EXE=..\software\xnview-setup.exe
|
|
|
|
|
2021-03-06 12:42:55 +01:00
|
|
|
if NOT EXIST %EXE% (
|
|
|
|
echo ERROR: %EXE% not found!
|
|
|
|
exit /b
|
|
|
|
)
|
|
|
|
|
2021-02-28 15:24:20 +01:00
|
|
|
echo ####### %0 #######
|
|
|
|
|
|
|
|
echo killing XnView processes...
|
|
|
|
taskkill /F /IM xnviewmp.exe 2>nul
|
|
|
|
|
|
|
|
echo installing XnView ...
|
2021-03-06 16:23:00 +01:00
|
|
|
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
2021-02-28 15:24:20 +01:00
|
|
|
|
2021-02-28 22:17:02 +01:00
|
|
|
echo renaming and moving XnView desktop link ...
|
|
|
|
move /Y "%USERPROFILE%\Desktop\XnViewMP.lnk" "%PUBLIC%\Desktop"
|
|
|
|
|
2021-03-06 16:23:00 +01:00
|
|
|
rem refresh desktop (W10 style)
|
|
|
|
ie4uinit.exe -show
|
|
|
|
|
2021-02-28 15:24:20 +01:00
|
|
|
echo ####### %0 #######
|
2021-03-02 21:47:42 +01:00
|
|
|
pause
|
|
|
|
|