30 lines
685 B
Batchfile
30 lines
685 B
Batchfile
@echo off
|
|
|
|
set CONFIG=config\install-foxitreader.txt
|
|
set EXE=..\software\foxitreader-setup.exe
|
|
|
|
if NOT EXIST %EXE% (
|
|
echo ERROR: %EXE% not found!
|
|
exit /b
|
|
)
|
|
|
|
echo ####### %0 #######
|
|
|
|
echo killing Foxit Reader process ...
|
|
taskkill /F /IM FoxitPDFReader.exe 2>nul
|
|
taskkill /F /IM FoxitPDFReaderUpdateService.exe 2>nul
|
|
|
|
echo installing Foxit Reader ...
|
|
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
|
|
|
echo stopping and delete update service ...
|
|
sc stop "FoxitReaderUpdateService"
|
|
sc delete "FoxitReaderUpdateService"
|
|
|
|
rem refresh desktop (W10 style)
|
|
ie4uinit.exe -show
|
|
|
|
echo ####### %0 #######
|
|
pause
|
|
|