Automate VLC Deployment with ConfigMgr

Create your Folder Structure:
\\ConfigMgrSourceServer\Apps\VLC\VersionNumber\
image
image

Download VLC: https://www.videolan.org/vlc/download-windows.html

Scripts & Files available here: http://garytown.com/Downloads/VLC.zip

Create your Install & Uninstall Scripts:

Load_VLC.cmd Script:
-----------------------------

REM Unininstall Old Versions:
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

REM Killing time to ensure the uninstall is completed.
PING 1.1.1.1 -n 1 -w 6000 >NUL

REM Using FOR Loop to find any EXE file and run it with these arguments (So you don't have to change the script for each new version)
for %%i in (*.exe) do cmd /c %%i /S /L=1033 --no-qt-privacy-ask --no-qt-updates-notif

REM Making Directory can copying config files to disable updates.
md %ALLUSERSPROFILE%\VLC
copy vlc-qt-interface.ini %ALLUSERSPROFILE%\VLC /Y
copy vlcrc %ALLUSERSPROFILE%\VLC /Y

mkdir "C:\ProgramData\vlc"
XCOPY vlcrc "C:\ProgramData\vlc" /E /V /H /Y
XCOPY vlc-qt-interface.ini "C:\ProgramData\vlc" /E /V /H /Y

REM Copy Shortcut to Start Menu Root
XCOPY "VLC Media Player.lnk" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\" /E /V /H /Y

REM Delete Start Menu Folder & Desktop Icon (x86 & x64)
RMDIR "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\VideoLAN" /S /Q
DEL "C:\Users\Public\Desktop\VLC media player.lnk" /S

------------------------------

 

Note, in most of my scripts, I use this line instead of the actual installer name “for %%i in (*.exe) do cmd /c %%I” – This way, each time the installer is updated, I don’t need to change the script, just copy the folder contents and replace the installer file.

 

Uninstall Script (Uninstall_VLC.cmd)
------------------------------

REM Unininstall Old Versions:
"%programfiles%\VideoLAN\VLC\uninstall.exe" /S /NCRC
"%PROGRAMFILES(X86)%\VideoLAN\VLC\uninstall.exe" /S /NCRC

REM Killing time to ensure the uninstall is completed.
PING 1.1.1.1 -n 1 -w 6000 >NUL

Remove_VLC_AppData.exe
REM - This is a powershell script that runs the following Command, which will delete user's VLC Data if they have it, so it pulls in the one created in this install.
REM - Get-ChildItem C:\Users\*\AppData\Roaming\VLC -Recurse | Remove-Item -Recurse

REM Killing time to ensure the the Last Process is complete
PING 1.1.1.1 -n 1 -w 6000 >NUL

 

REM Copy Shortcut to Start Menu Root
DEL "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\VLC Media Player.lnk" /Q /S

REM Delete Start Menu Folder & Desktop Icon
RMDIR "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\VideoLAN" /S /Q
DEL "C:\Users\Public\Desktop\VLC media player.lnk" /S
RD /S /Q  "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\VideoLan\"
del /Q "C:\Users\Public\Desktop\VLC media player.lnk"

-------------------------

I also copied a couple of preference files (in the download available), this is also supposed to disable automatic updates.
For some reason though, when I launch the application, go in to settings, it still shows the updater is active, but I have not seen any prompts.  So it “appears” to be disabled anyway.

 

Now that we have our Content created, in ConfigMgr
Create an Application

image

image

In the Content Tab, make sure it is pointing to your ConfigMgr Content Source.

image

image

image

image
Note, if you do not have this custom requirement available, see this post: https://social.technet.microsoft.com/Forums/en-US/93d48cc5-57fc-46e7-9bd0-ac202b756fda/how-to-create-a-sccm-2012-custom-requirement-for-os-architecture?forum=configmanagerapps

image

 

If I didn’t show a tab, it because there is nothing to set.

 

I hope you found this useful, look for several others to follow soon, including:
Adobe Air
Chrome
FileZilla
FireFox
Flash
Notepad ++
WinSCP

And a follow up on how to keep them updated.

2 thoughts on “Automate VLC Deployment with ConfigMgr

  • July 6, 2016 at 4:07 am
    Permalink

    Are you still using the x86 installer because with version 2.2.4 there is a x64 installer and the detection rule should include and 'or' '%ProgramFiles%\VideoLAN\VLC' :-))

    Reply
    • July 6, 2016 at 1:04 pm
      Permalink

      We are still using the x86 version. I'll probably look into the x64 version next time around. Thanks for the info.

      Reply

Leave a Reply

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