w10install/optional/install-xnview.cmd
2021-03-06 16:23:00 +01:00

28 lines
599 B
Batchfile

@echo off
set CONFIG=config\install-xnview.txt
set EXE=..\software\xnview-setup.exe
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
exit /b
)
echo ####### %0 #######
echo killing XnView processes...
taskkill /F /IM xnviewmp.exe 2>nul
echo installing XnView ...
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
echo renaming and moving XnView desktop link ...
move /Y "%USERPROFILE%\Desktop\XnViewMP.lnk" "%PUBLIC%\Desktop"
rem refresh desktop (W10 style)
ie4uinit.exe -show
echo ####### %0 #######
pause