2021-02-28 15:24:20 +01:00
|
|
|
@echo off
|
|
|
|
|
|
|
|
set CONFIG=config\install-xnview.txt
|
|
|
|
set EXE=..\software\xnview-setup.exe
|
2021-09-05 15:02:23 +02:00
|
|
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
2021-02-28 15:24:20 +01:00
|
|
|
|
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-09-05 15:02:23 +02:00
|
|
|
echo removing XnView desktop link ...
|
|
|
|
del /F "%USERPROFILE%\Desktop\XnViewMP.lnk"
|
|
|
|
|
|
|
|
echo moving XnView startmenu shortcut ...
|
|
|
|
move /Y %STARTMENU%\"XnViewMP\XnViewMP.lnk" %STARTMENU%
|
|
|
|
|
|
|
|
echo removing XnView startmenu folder ...
|
|
|
|
rd /S /Q %STARTMENU%\"XnViewMP" 2>nul
|
2021-02-28 22:17:02 +01:00
|
|
|
|
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
|
|
|
|
|