Install VLC Media Player 2.2.4 Silently using SCCM

The following process has been tested and confirmed as working with VLC Media Player (Version: 2.2.4) and SCCM R2.

It does the following tasks:

  • Un-installs previous versions of VLC Media Player
  • Installs VLC Media Player silently
  • Removes desktop shortcut
Having troubles with the instructions?
Take a look at the example download:
Full Download: VLCSilentInstall.zip

 

  1. Download the latest install file from www.videolan.org/vlc
  2. SCCM-VLCInstall1
  3. Create a text file called install.cmd and copy in the following information
@echo off
cls
echo --------------------------------------------------------
echo .
echo .
echo .      Installing VLC Media Player - Please Wait
echo .         Window will close once installed

REM Uninstall existing VLC version
if exist "%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES%\VideoLAN\VLC\uninstall.exe" /S
if exist "%PROGRAMFILES(x86)%\VideoLAN\VLC\uninstall.exe" "%PROGRAMFILES% (x86)\VideoLAN\VLC\uninstall.exe" /S
:: Wait for 20 seconds
ping -n 20 127.0.0.1 > NUL

REM Run VLC Installer
"%~dp0vlc-2.2.4-win32.exe" /language=en_GB /S

REM Removes VLC Desktop Icon - Windows XP
if exist "%allusersprofile%\Desktop\VLC media player.lnk" del "%allusersprofile%\Desktop\VLC media player.lnk" /S

REM Removes VLC Desktop Icon - Windows 7
if exist "%public%\Desktop\VLC media player.lnk" del "%public%\Desktop\VLC media player.lnk" /S

REM Return exit code to SCCM
exit /B %EXIT_CODE%
  1. Copy the installer file and install.cmd to your software package share
  2. You can now create your SCCM package or deploy the software by using install.cmd.

 

For more information on creating SCCM packages see SCCM – How to Distribute Software Packages.