31 lines
514 B
Batchfile
31 lines
514 B
Batchfile
@echo off
|
|
call check-for-admin
|
|
if %ERRORLEVEL% neq 0 exit /b
|
|
|
|
set OPT=..\optional
|
|
set SOFTWARE=..\software
|
|
set EXE=vlc-setup.exe
|
|
|
|
if NOT EXIST %SOFTWARE%\%EXE% (
|
|
echo ERROR: %SOFTWARE%\%EXE% not found!
|
|
exit /b
|
|
)
|
|
|
|
echo ####### %0 #######
|
|
|
|
echo installing ...
|
|
cd %SOFTWARE%
|
|
@echo on
|
|
%EXE% /L=1033 /S
|
|
@echo off
|
|
cd %OPT%
|
|
|
|
echo removing Desktop link ...
|
|
del /F "%PUBLIC%\Desktop\VLC media player.lnk" 2>nul
|
|
|
|
rem refresh desktop (W10 style)
|
|
ie4uinit.exe -show
|
|
|
|
echo ####### %0 #######
|
|
|