/build/static/layout/Breadcrumb_cap_w.png

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login
Views: 36.4k  |  Created: 08/17/2009

Average Rating: 0
VLC media player has 20 inventory records, 7 Questions, 1 Blogs and 3 links. Please help add to this by sharing more!

Deployment Tips (20)

Most Common Setup Type
Not Determined
Average Package Difficulty Rating
Rated 3 / 5 (Average) based on 3 ratings
Most Commonly Reported Deployment Method
Repackaged (to a legacy setup.exe)
38
Note
To package VLC Media Player 1.0.1, make sure that you download NOT the executable, but the zipped version: http://www.videolan.org/mirror-geo.php?file=vlc/1.0.1/win32/vlc-1.0.1-win32.zip

Also, download and install (because you're going to have to recompile an executable) NSIS (Nullsoft): http://nsis.sourceforge.net/Download

Look for, then open in a text editor, the following file: vlc.win32.nsi

Look for the lines that establish associations with media files and rem-out (using semi-colons) any associations you don't want VLC to handle.

We disabled these:

; !insertmacro ${_action} ".mp3"
; !insertmacro ${_action} ".wav"
; !insertmacro ${_action} ".wma"
; !insertmacro ${_action} ".asf"
; !insertmacro ${_action} ".flv"
; !insertmacro ${_action} ".mov"
; !insertmacro ${_action} ".mp4"
; !insertmacro ${_action} ".mpeg"
; !insertmacro ${_action} ".mpeg1"
; !insertmacro ${_action} ".mpeg2"
; !insertmacro ${_action} ".mpeg4"
; !insertmacro ${_action} ".mpg"
; !insertmacro ${_action} ".wmv"
; !insertmacro ${_action} ".asx"
; !insertmacro ${_action} ".bin"
; !insertmacro ${_action} ".cue"
; !insertmacro ${_action} ".m3u"

Look for and rem-out these two lines to get rid of the desktop shortcut:

; CreateShortCut "$DESKTOP\VLC media player.lnk" ; "$INSTDIR\vlc.exe" ""

To suppress the "Privacy and Network Policies" dialog that appears when VLC is run for the first time, look for these lines:

CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player.lnk" "$INSTDIR\vlc.exe" ""

...and change them to this:

CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player.lnk" "$INSTDIR\vlc.exe" "--no-qt-privacy-ask"

Save your changes.

Right-click on this file and (if you installed the NSIS stuff), you should see the option: Compile NSIS Script - choose this option, and it will compile a new VNC installation executable IN THE FOLDER ABOVE the current folder.

Run this newly-created executable using the /S (must be uppercase) and you're good to go.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
23
Command Line
Start VLC witout privacy and update notification?

1. download VLC as zip-file, unpack to a folder
2. create a msi with a shortcut

Use this shortcut description:

C:\Programme\VideoLAN\VLC\vlc.exe "--no-qt-privacy-ask" "--no-qt-updates-notif"

:-)
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
15
Note
To disable the autoupdate modify this line with the following parameters:

CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player.lnk" "$INSTDIR\vlc.exe" "--no-qt-privacy-ask --no-qt-updates-notif"
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
11
Command Line
Install run:
%~dp0vlc-0.9.9-win32.exe /L=1033 /S /NCRC
1033 = EN-us, 1036 = FR-fr, 1033 = dutch, 1044 = Norwegian, 1053 = SV-sv etc.

To uninstall:
%Programfiles%\VideoLAN\VLC\uninstall.exe /S /NCRC

"NSIS installers recognize /S for silent installation, /NCRC to suppress the CRC (verification) step, and /D=dir to specify the "output directory", which is where the program will be installed. These options are case-sensitive, so be sure to type them in upper case."
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
7
Note
For VLC 1.1.11

I made a simple batch file that:

*Uninstalls previous versions of VLC silently.
*Installs New version of VLC silently.
*Disables Prompt "Look for updates & allow fetching media from Internet" at first run.
( L=1053 for Swedish language )


"%programfiles%\VideoLAN\VLC\uninstall.exe" /S /NCRC
PING 1.1.1.1 -n 1 -w 6000 >NUL
vlc-1.1.11-win32.exe /S /L=1053 --no-qt-privacy-ask --no-qt-updates-notif
md %ALLUSERSPROFILE%\VLC
copy vlc-qt-interface.ini %ALLUSERSPROFILE%\VLC /Y
copy vlcrc %ALLUSERSPROFILE%\VLC /Y
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
6
Note
In version 1.1.2, the .nsi file is not located in the .zip file. It is, however, located in the .7z file.

Sam
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
5
Note
In addition to sean c roberts entry.

Also find the string:
WriteRegStr HKCR "VLC$R0\shell\Open\command" "" '"$INSTDIR\vlc.exe" --started-from-file "%1"'

And change it to:
WriteRegStr HKCR "VLC$R0\shell\Open\command" "" '"$INSTDIR\vlc.exe" "--no-qt-privacy-ask" --started-from-file "%1"'

This suppresses the "Privacy and Network Policies" dialog box when double-clicking a media file.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
4
Note
The silent install switches you can code into the install using vlc.win32.nsi only change the icon under Programs but not the file associations. So if you double click on a file the first time and not the icon the user still gets the Update window.

I launched VLC player once and saved the vlcrc file it creates in my profile to use for my installations. I used Active Setup, a feature built into the Windows OS, to populate the users profile with the VLCRC file I had created earlier to trick VLC into thinking it had been already opened. Using SMS I created an executable to copy my vlcrc file into the users profile. This executable is copied after the standard VCL install into C:\Program Files\VideoLAN. This file, when run, copies my VLCRC file to %USERNAME%\ Application Data\vlc. By using Active Setup this exe is run once for each user when they log in

The location of my executable is %PROGRAM_FILES%\VideoLAN\VLCRC_File.EXE
I created registry Keys in HKLM\Software\Microsoft\Active Setup\Installed Components\VLC_MediaPlayer

My value name “Stubpath” has a value of C:\Program Files\VideoLAN\NLCRC_File.EXE which points to the location of the executable I mentioned above.
My value name “Version” has a value of 1

These keys are installed in the same wrapper that installs VLC and copies my executable

For Active Set information see information here on Appdeploy
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
3
Note
For silent installation on computers with previous versions of VLC, modify the folowing line (836/837) in the NSIS :

MessageBox MB_YESNO|MB_ICONEXCLAMATION $Message_AlreadyInstalled IDNO done

by the following :

MessageBox MB_YESNO|MB_ICONEXCLAMATION $Message_AlreadyInstalled /SD IDNO IDNO done

cf : http://trac.videolan.org/vlc/ticket/3997
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
3
Note
Update for 1.1.4:

1) Download the .7z file, not the zip file, so this is the file you want to download: vlc-1.1.4-win32.7z

2) In order to extract the source files, you will need to install a free zip-like app called 7zip from here: http://www.7-zip.org

3) Once you extract the files, you can find the appropriate .nis file and edit that.

4) Recompile using NSIS as indicated in my previous post.

...took a while for me to figure this out, so I hope I saved you some time! :)
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
2
Note
Silent Installation:
vlc-1.1.1-win32.exe /S

Silent Deinstallation:
%ProgramFiles%\VideoLAN\VLC\uninstall.exe /S


No Updates:

There are two ways to do it.


Way 1:
Download the vlc-1.1.1-win32.7z file and extract these. Then add "--no-qt-privacy-ask --no-qt-updates-notif" on every ShortCut to "$INSTDIR\vlc.exe" in the vlc.win32.nsi file.

Example:
CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player.lnk" "$INSTDIR\vlc.exe" "--no-qt-privacy-ask --no-qt-updates-notif"

After this compile the installer and deploy it ;)


Way 2:
This way is very easy. Copy only the vlcrc (without any extensions) with following rows:

[qt4] # Qt interface

# Show notification popup on track change (boolean)
#qt-notification=1

# Activate the updates availability notification (boolean)
qt-updates-notif=0

# Number of days between two update checks (integer)
#qt-updates-days=7

# Ask for network policy at start (boolean)
qt-privacy-ask=0


to %AppData%\vlc
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
2
Note
While playing an MP3, click the EQ icon.
-In "adjustment and Effects" window -> Audio tab -> Spatializer tab
The spatializer function will break if played with
(https://trac.videolan.org/vlc/ticket/4887)
Delete C:\Program Files\VideoLAN\VLC\plugins\libspatializer_plugin.dll
and the spatializer tab will just be non-functional eye candy.

-While playing a video, click the EQ icon.
-In "adjustment and Effects" window -> Video Effects tab -> Image Modification tab
The Noise check box will freeze the video and prevent VLC from exiting (must use Task Manager)
(https://trac.videolan.org/vlc/ticket/4290)
Delete C:\Program Files\VideoLAN\VLC\plugins\libnoise_plugin.dll
and the Noise check box will just be non-functional eye candy.

Disabling Building Font Cache dialog of VLC Media Player
http://techdows.com/2010/12/disable-building-font-cache.html
1.Open VLC Player, From Tools Menu click Preferences,
2. On the left pane at the bottom, select All as option to show under “Show Settings” ,
3.Now expand Video entry on the left pane and select “Subtitles/OSD” option under it.
4. On the right pane, for Text rendering module choose “Dummy font rendering functions” and click Save.
5.Re-open VLC player try to play file/stream with subtitles, annoying Building Font Cache dialog won’t appears anymore.


Sometimes is annoying having all this popups when VLC is minimized and track changes.
Here is how to disable them:
Go to Tools-> Preferences -> All -> Interfaces -> Main Interfaces -> Qt
and uncheck Notify on track change.

To diable the built-in HTTP server:
Delete C:\Program Files\VideoLAN\VLC\http folder
Delete C:\Program Files\VideoLAN\VLC\lua\http folder

to reduce the number of files in the pacakge.
delete all the languages that you will not be using in C:\Program Files\VideoLAN\VLC
for example, if you will only need English delete all sub-folders except for C:\Program Files\VideoLAN\VLC\locale\en_GB

If you want to remove one or more of the links at the bottom of the View menu
Delete one or more of the .LUA files in C:\Program Files\VideoLAN\VLC\lua\extensions
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Command Line
The 1.0.3 version still works:

> vlc-1.0.3-win32.exe /L=1034 /S

(to install in Spanish language)
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Note

adding this entry did CreateShortCut "$SMPROGRAMS\VideoLAN\VLC media player.lnk" "$INSTDIR\vlc.exe" "--no-qt-privacy-ask --no-qt-updates-notif" will stop the shortcut from being associated with an iocn. I did try without it and managed to suppress the security warning on startup. Notepad++ is better way to modify the nsi project file than the usual notepad

Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Note
I didn't see the vlc.win32.nsi file in the zip file for version 1.1, so I went the autoit route. This script will unclick the desktop icon and the file associations, and copy the vlcrc file.

#Include <GuiTreeView.au3>

$title = "VLC media player 1.1.2 Setup"

run("vlc-1.1.2-win32.exe")

winwait("Installer Language", "Please select a language.")
controlclick("Installer Language", "Please select a language.", "OK")

winwait($title, "Welcome")
controlclick($title, "Welcome", "&Next >")

winwait($title, "License")
controlclick($title, "License", "&Next >")

winwait($title, "Choose Components")

; more reliable than sending arrow & space keystrokes
$hWnd = ControlGetHandle($title, "Choose Components", _
"[CLASS:SysTreeView32]")

$desktopItem = _GUICtrlTreeView_FindItem($hWnd, "Desktop Shortcut")
_GUICtrlTreeView_ClickItem($hWnd, $desktopItem)

$filetypeItem = _GUICtrlTreeView_FindItem($hWnd, "File type associations")
_GUICtrlTreeView_ClickItem($hWnd, $filetypeItem)

controlclick($title, "Choose Components", "&Next >")

winwait($title, "Choose Install Location")
controlclick($title, "Choose Install Location", "&Install")

winwait($title, "Completing the VLC")
controlcommand($title, "Completing the VLC", "&Run VLC media player 1.1.2", _
"uncheck")
controlclick($title, "Completing the VLC", "&Finish")

DirCreate("C:\Users\Default\AppData\Roaming\vlc")
FileCopy("vlcrc", "C:\Users\Default\AppData\Roaming\vlc", 1)
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Note
Version 1.1.4

Setup capture is easy with this application. Remember to add "--no-qt-privacy-ask --no-qt-updates-notif" in the shortcut before you compile. You should alsp consider the registry settings below if you use Setup/capture in wise. If the user starts VLC first time by inserting a CD/DVD, there might be a popup asking questions on autoupdate.

(Norwegian registry) You might want to change some settings.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\AudioCD]
@="AudioCD"
"BaseClass"="Drive"
"EditFlags"=dword:00000002
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\AudioCD\DefaultIcon]
@="C:\\WINDOWS\\system32\\shell32.dll,40"

[HKEY_CLASSES_ROOT\AudioCD\shell]
@="PlayWithVLC"

[HKEY_CLASSES_ROOT\AudioCD\shell\play]
@="&Spill av"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\ 6f,00,74,00,25,00,5c,00,69,00,6e,00,66,00,5c,00,75,00,6e,00,72,00,65,00,67,00,6d,00,70,00,32,00,2e,00,65,00,78,00,65,00,2c,00,2d,00,39,00,39,00,39,00,31,00,00,00

[HKEY_CLASSES_ROOT\AudioCD\shell\play\command]
@="\"C:\\Programfiler\\Windows Media Player\\wmplayer.exe\" /prefetch:3 /device:AudioCD \"%L\""

[HKEY_CLASSES_ROOT\AudioCD\shell\PlayWithVLC]
@="Play with VLC media player"

[HKEY_CLASSES_ROOT\AudioCD\shell\PlayWithVLC\command]
@="\"C:\\Programfiler\\VideoLAN\\VLC\\vlc.exe\" --no-qt-privacy-ask --no-qt-updates-notif --started-from-file cdda://%1"

[HKEY_CLASSES_ROOT\DVD]
@="DVD"
"BaseClass"="Drive"
"EditFlags"=dword:00000002
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\DVD\DefaultIcon]
@="shell32.dll,40"

[HKEY_CLASSES_ROOT\DVD\shell]
@="PlayWithVLC"

[HKEY_CLASSES_ROOT\DVD\shell\play]
@="&Spill av"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\ 6f,00,74,00,25,00,5c,00,69,00,6e,00,66,00,5c,00,75,00,6e,00,72,00,65,00,67,\ 00,6d,00,70,00,32,00,2e,00,65,00,78,00,65,00,2c,00,2d,00,39,00,39,00,39,00,31,00,00,00

[HKEY_CLASSES_ROOT\DVD\shell\play\command]
@="\"C:\\Programfiler\\Windows Media Player\\wmplayer.exe\" /prefetch:4 /device:DVD \"%L\""

[HKEY_CLASSES_ROOT\DVD\shell\PlayWithVLC]
@="Play with VLC media player"

[HKEY_CLASSES_ROOT\DVD\shell\PlayWithVLC\command]
@="\"C:\\Programfiler\\VideoLAN\\VLC\\vlc.exe\" --no-qt-privacy-ask --no-qt-updates-notif --started-from-file dvd://%1"
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
1
Note
The commandline switches: --no-qt-updates-notif --qt-updates-days=x :doesn't seem to work.

This is out of the bugreport:
https://trac.videolan.org/vlc/ticket/4269

"Works as expected. The preferences panel shows the persistent VLC configuration. The command line options are only valid for the running instance however."
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
0
Note
All the above very useful. Nevertheless I had some troubles in customizing the installer (I chose this way instead of using the VLCRC file).

What I wanted to do is disabling BOTH updates notifications and privacy msg when using VLC for the first time not running it from the Start Menu shortcut, but double clicking on a media file (which I guess is the way it usually goes).

I tried adding the 2 known parameters (--no-qt-updates-notif and --no-qt-privacy-ask) in the .nsi file when needed: each time I found a line with "$INSTDIR\VLC.EXE" --started-from-file.

At first, it seemed it could accept only one, like this:

"$INSTDIR\VLC.EXE" "no-qt-updates-notif" --started-from-file

while adding the two of them together, trying in both formats:

"$INSTDIR\VLC.EXE" "--no-qt-updates-notif" "--no-qt-privacy-ask" --started-from-file.

"$INSTDIR\VLC.EXE" "--no-qt-updates-notif --no-qt-privacy-ask" --started-from-file

ended up, once installed, in a cmdline error box, when double clicking the media file.

At last I understood that the 2 parameters can be set together, but using them without ""

So you have to set:

"$INSTDIR\vlc.exe" --no-qt-privacy-ask --no-qt-updates-notif

This way,it seems to work fine.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
-5
Command Line
You can directly deploy VLC 1.1.10 with the following command:

Install:
vlc-1.1.10-win32.exe /S /V/qn

UnInstall:
vlc-1.1.10-win32.exe /S /X /V/qn
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows
-13
Note
Also with this version the software is a "drag and drop" Project.

Just insert the installation directory inside a WISE or Installshield project and your good to go.

For further tuning you'll need to find out what Registerkey will set the value inside the package.
Setup Information:
Setup Type: unspecified
Deployment Method Used: unspecified
Deployment Difficulty: unspecified
Platform(s): Windows

Questions & Answers (7)

Questions & Answers related to VideoLAN VLC media player

2
ANSWERS
1
ANSWERS
1
ANSWERED
3
ANSWERED
4
ANSWERS
11
ANSWERS

Blogs (1)

Blog posts related to VideoLAN VLC media player

Reviews (0)

Reviews related to VideoLAN VLC media player

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ