2022-12-27 21:06:09 +01:00
|
|
|
@echo off
|
|
|
|
call check-for-admin
|
|
|
|
if %ERRORLEVEL% neq 0 exit /b
|
|
|
|
|
|
|
|
set OPT=..\optional
|
|
|
|
set SOFTWARE=..\software
|
|
|
|
set EXE=vlc-setup.exe
|
2023-01-10 14:37:44 +01:00
|
|
|
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
2022-12-27 21:06:09 +01:00
|
|
|
|
|
|
|
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%
|
|
|
|
|
2023-01-10 14:37:44 +01:00
|
|
|
echo removing VLC Desktop link ...
|
2022-12-27 21:06:09 +01:00
|
|
|
del /F "%PUBLIC%\Desktop\VLC media player.lnk" 2>nul
|
|
|
|
|
2023-01-10 14:37:44 +01:00
|
|
|
echo moving VLC startmenu shortcut ...
|
|
|
|
move /Y %STARTMENU%\"VideoLAN\VLC media player.lnk" %STARTMENU%
|
|
|
|
|
|
|
|
echo removing VLC startmenu folder ...
|
|
|
|
rd /S /Q %STARTMENU%\"VideoLAN" 2>nul
|
|
|
|
|
2022-12-27 21:06:09 +01:00
|
|
|
rem refresh desktop (W10 style)
|
|
|
|
ie4uinit.exe -show
|
|
|
|
|
|
|
|
echo ####### %0 #######
|
|
|
|
|
2023-01-26 11:13:20 +01:00
|
|
|
rem set filetypes ...
|
|
|
|
if EXIST ..\scripts\set-filetypes.cmd (
|
|
|
|
call ..\scripts\set-filetypes.cmd
|
|
|
|
)
|
|
|
|
|
|
|
|
pause
|
|
|
|
|