w10install/scripts/install-irfanview.cmd

39 lines
894 B
Batchfile
Raw Permalink Normal View History

2022-11-13 22:12:39 +01:00
@echo off
set EXE=..\software\iview-setup.exe
2023-01-19 22:54:18 +01:00
set ZIP=..\software\iview-plugins.zip
2022-11-13 22:12:39 +01:00
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
set TARGET="%PROGRAMFILES%\IrfanView"
2022-11-13 22:12:39 +01:00
if NOT EXIST %EXE% (
echo ERROR: %EXE% not found!
pause
exit /b
)
echo ####### %0 #######
echo installing IrfanView ...
start /wait %EXE% /silent /desktop=1 /thumbs=1 /folder=%TARGET% /group=1 /allusers=1
2022-11-13 22:12:39 +01:00
2023-02-21 07:14:01 +01:00
echo sleeping 5 seconds ...
ping 127.0.0.1 -n 5 > NUL 2>&1
2022-11-13 22:12:39 +01:00
echo removing IrfanView startmenu folder ...
rd /S /Q %STARTMENU%\"IrfanView" 2>nul
echo moving IrfanView desktop links to Startmenu ...
2023-01-15 17:52:06 +01:00
mkdir %STARTMENU%\IrfanView 2>nul
move /Y "%PUBLIC%\Desktop\IrfanView*.lnk" %STARTMENU%\IrfanView
2022-11-13 22:12:39 +01:00
rem refresh desktop (W10 style)
ie4uinit.exe -show
2023-01-19 22:54:18 +01:00
if EXIST %ZIP% (
echo extracting and installing PDF plugin ...
7z -o%TARGET%\Plugins -aoa x %ZIP% PDF.dll
2023-01-19 22:54:18 +01:00
)
2022-11-13 22:12:39 +01:00
echo ####### %0 #######