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 |
- Download the latest install files (both 64 bit and 32 bit) from www.videolan.org/vlc
- 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%
- Copy the installer file and install.cmd to your software package share
- 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.
it is good
forgot : deploying from sccm 2007 sp2 r3 to Windows 7 enterprise x86 clients in a testlab…
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!
Hi buzmarius –
Thanks for the very good tip. I’ve made the changes.
Cheers.
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.
@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]
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
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]
Does it work in OSD as well?
Thanks