diff --git a/optional/install-vlc.cmd b/optional/install-vlc.cmd index ebad3c5..d77326c 100644 --- a/optional/install-vlc.cmd +++ b/optional/install-vlc.cmd @@ -5,6 +5,7 @@ if %ERRORLEVEL% neq 0 exit /b set OPT=..\optional set SOFTWARE=..\software set EXE=vlc-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" if NOT EXIST %SOFTWARE%\%EXE% ( echo ERROR: %SOFTWARE%\%EXE% not found! @@ -20,9 +21,15 @@ cd %SOFTWARE% @echo off cd %OPT% -echo removing Desktop link ... +echo removing VLC Desktop link ... del /F "%PUBLIC%\Desktop\VLC media player.lnk" 2>nul +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 + rem refresh desktop (W10 style) ie4uinit.exe -show