Install VLC Media Player Silently using SCCM

The following process has been tested and confirmed as working with VLC Media Player (Version: 3.0.11) 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 files (both 64 bit and 32 bit) 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 . This 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 Silent install for 64-bit
if defined ProgramFiles(x86) “%~dp0vlc-3.0.11-win64.exe” /language=en_GB /S
if defined ProgramFiles(x86) exit

REM Silent install for 32-bit
“%~dp0vlc-3.0.11-win32.exe” /language=en_GB /S

REM Removes VLC Desktop Icon – Windows 7 and 10
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.

Tagged in

16 comments on “Install VLC Media Player Silently using SCCM

  1. Hi Hans – It’s been awhile since I’ve administered SCCM, but I do remember that we installed VLC as a part of the task sequence.

    I also remember that SCCM can take a long time to detect advertised packages (even mandatory ones) and in extreme cases the ‘COMPUTER’ records were corrupted and could only be fixed by deleting and allowing it to be re-imported as a new computer record in the database.

    If you can I think you will get far better results by adding the package install to the OS deployment task sequence.

  2. Hi Soon –

    The beta is no longer available for download, but with 2.0.4 I was able to uninstall the 64-bit version on a 64-bit Windows 7 installation using this line

    [quote]if exist “%PROGRAMFILES%VideoLANVLCuninstall.exe” “%PROGRAMFILES%VideoLANVLCuninstall.exe” /S[/quote]

    Perhaps the issue your having is because it was a beta installation?

  3. Hi, May I know what is the correct command line to perform the silent uninstall of vlc-2.04-win64(beta)? When I used – “%programfiles%VideoLANVLCuninstall.exe” /S , I keep getting “Cannot Run Program because program files cannot be found”

    Thanks,
    Soon Hong

Leave a Comment

Your email address will not be published. Required fields are marked *