Install VLC Media Player Silently using SCCM

The following process has been tested and confirmed as working with VLC Media Player (Version: 3.0.1) 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 .        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.1-win64.exe" /language=en_GB /S
if defined ProgramFiles(x86) exit

REM Silent install for 32-bit
"%~dp0vlc-3.0.1-win64.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.

Related Articles

16 comments on “Install VLC Media Player Silently using SCCM

  1. Hi,
    thanks for this explanation. I’m having a problem however with the deployment.

    I’m trying to deploy it after OS has been deployed so I have created an advertisement for VLC but the advertisement never seems to reach my clients in the collection I have advertised to.

    Can’t find any errors in log-files…

    Any clue?

    thanks a bunch!

  2. You might want to replace C:UsersPublic with %PUBLIC%, like you did for XP. It’s shorter and more accurate. Very few win users have windows installed in C: and this line has no effect for them.

  3. @Calle:
    check these websites for information how to create a custom installer…
    – [url]http://blog.wisefaq.com/2010/08/28/installing-vlc-media-player-in-a-corporate-environment/[/url]
    – [url]http://www.marcus-bungert.de/archives/1110[/url]

  4. Hi, The skript works great! A nice thing would be to change the shortcut target to C:%programfiles%VideoLANVLCvlc.exe –no-qt-privacy-ask –no-qt-updates-notif. Do you now how to do that?

    /Calle

  5. Hi SuperElvis –

    I have successfully used this software package install in a OSD Task Sequence.

    As with any OSD software install you’ll need to do it after Windows 7 has been installed and restarted.

    See the image below which outlines when I had the software package install.

    [url]http://mockbox.net/images/stories/SCCM-BuildAndCapOutline1.png[/url]

Leave a Reply

Your email address will not be published.