Failing that, does anyone have a suggestion on how to get around this?
Failing that, does anyone have a suggestion on how to get around this?

Here are the changes I made to my vlc.win32.nsi for v1.1.10...
Lines Replace this... With this... 164 WriteRegStr HKCR "VLC$R0\shell\Open\command" "" '"$INSTDIR\vlc.exe" --started-from-file "%1"' WriteRegStr HKCR "VLC$R0\shell\Open\command" "" '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file "%1"' 346 WriteRegStr HKCR ${EXT}\shell\PlayWithVLC\command "" '"$INSTDIR\vlc.exe" --started-from-file --no-playlist-enqueue "%1"' WriteRegStr HKCR ${EXT}\shell\PlayWithVLC\command "" '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file --no-playlist-enqueue "%1"' 349 WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC\command "" '"$INSTDIR\vlc.exe" --started-from-file --playlist-enqueue "%1"' WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC\command "" '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file --playlist-enqueue "%1"' 517 '"$INSTDIR\vlc.exe" --started-from-file "%1"' '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file "%1"' 539 Section $Name_Section02a SEC02a Section /o $Name_Section02a SEC02a 540 SectionIn 1 2 3 SectionIn 3 556 Section $Name_Section02b SEC02b Section /o $Name_Section02b SEC02b 557 SectionIn 1 2 3 SectionIn 3 582 Section $Name_Section04 SEC04 Section /o $Name_Section04 SEC04 599 '"$INSTDIR\vlc.exe" --started-from-file cdda://%1' '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file cdda://%1' 602 '"$INSTDIR\vlc.exe" --started-from-file dvd://%1' '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file dvd://%1' 656 '"$INSTDIR\vlc.exe" --started-from-file dvd://%1' '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file dvd://%1' 662 '"$INSTDIR\vlc.exe" --started-from-file cdda://%1' '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file cdda://%1' 668 '"$INSTDIR\vlc.exe" --started-from-file vcd://%1' '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file vcd://%1' 674 '"$INSTDIR\vlc.exe" --started-from-file vcd://%1' '"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file vcd://%1' 836 MessageBox MB_YESNO|MB_ICONEXCLAMATION $Message_AlreadyInstalled IDNO done ; MessageBox MB_YESNO|MB_ICONEXCLAMATION $Message_AlreadyInstalled IDNO done 841 ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file ExecWait '$R0 /S _?=$INSTDIR' ;Do not copy the uninstaller to a temp file 864 "UninstallString" "$INSTDIR\uninstall.exe" "UninstallString" '"$INSTDIR\uninstall.exe" /S' 1043 Section /o "un.$Name_Section92" SEC92 Section "un.$Name_Section92" SEC92 Additions 599 « Insert text on the right after this line to make VLC the default media player for DVDs WriteRegStr HKCR "DVD\shell" "" "PlayWithVLC"
Zoom7000 (14th July 2011)

My NSI and a MSI wrapper for the EXE (created with WIWW) are attached below.![]()
Zoom7000 (14th July 2011)
Can anyone please explain how you can compile a new NSI installer?

It's quite easy...* If you are using a 64-bit version of Windows you won't see this option, so you will need to open the NSI file in NSIS itself and compile it from there.
- Download and install NSIS v2.46 from here.
- Download the VLC Media Player v1.1.10 7-Zip package (if you haven't already) and extract it to a folder on your HDD e.g. C:\VLC\Files.
- Open the folder you extracted the files above to and delete the sub-folder called 'sdk'. If you don't do this, the SDK folder will not be deleted when you uninstall VLC.
- Overwrite vlc.win32.nsi with your own version, or mine from the link above.
- Right-click vlc.win32.nsi and choose Compile NSIS Script*.
- After 30 seconds or so, you should end up with a brand new vlc-1.1.10-win32.exe installer. This will be saved in the parent folder of the one containing the VLC files e.g. C:\VLC
Zoom7000 (14th July 2011)

New NSIS script for VLC Media Player v1.1.11 attached.
Features
- Makes VLC the default media player for DVDs
- Start Menu and desktop shortcuts are not created by default
- ActiveX plug-in isn't installed
- Suppresses the "Privacy and Network Policies" dialog box when VLC is launched for the first time i.e. No "Allow fetching media information from Internet" and "Check for updates" prompt
- Suppresses the "VLC media player has already been installed. Do you want to remove the previous version ...? prompt
- Command Prompt window is hidden when vlc-cache-gen.exe runs.
- Adds file association for .hdmov videos
- Uninstaller runs silently
Last edited by Arthur; 18th July 2011 at 02:59 AM.
You still have to add the bits to the shortcuts, right? Also I take it all you've done is then made the .exe file from NSIS into an MSI?Suppresses the "Privacy and Network Policies" dialog box when VLC is launched for the first time i.e. No "Allow fetching media information from Internet" and "Check for updates" prompt
Last edited by Edu-IT; 18th July 2011 at 03:59 PM.

Only if you create the shortcuts manually yourself. The prompt you mentioned is already disabled for every audio, video and playlist file associated with VLC (along with DVDs etc.)
If you normally deploy your shortcuts separately (e.g. CC3 network), you don't need to edit the NSIS script at all. Just create the required shortcuts and add the switches in the target box (--no-qt-updates-notif --no-qt-privacy-ask).
However, if you would prefer to have the modified installer create a shortcut to VLC on your Start Menu along with the necessary switches, simply remove the /o from Section02a on line 542 and change SectionIn 3 (on the line below) to SectionIn 1 3. Similarly, if you want the desktop shortcut, do the same thing to Section02b on lines 559/560.
The MSI included in the attachment above is just a wrapper around the EXE which passes the appropriate command-line switches to the NSIS installer to install and uninstall VLC silently (kind of like the Flash Player and Google Chrome MSIs). I'm not a fan of this method, but it works well for VLC.
If your software deployment system supports EXEs (e.g. CC3/CC4/WKPG etc.) you don't need to bother with the MSI at all.![]()
Edu-IT (19th July 2011)
"Only if you create the shortcuts manually yourself. The prompt you mentioned is already disabled for every audio, video and playlist file associated with VLC (along with DVDs etc.)
"
When I play video using VLC, it didn't pop up "Privacy and Network Policies" dialog box, but when I check tools->Preferences, Activate update notifier is still checked. How can I uncheck this one?
Last edited by ling; 5th August 2011 at 11:26 PM.

That's normal. I honestly wouldn't worry about it because the command-line switches on both the Start Menu shortcut and the files associated with VLC prevent the update notifier from running anyway.
If however you did want to uncheck that box, you would need to edit the vlcrc file which is located in each users %AppData%\vlc folder and add the following line to it (assuming it doesn't already exist).
Code:# Activate the updates availability notification (boolean) qt-updates-notif=0
Not trying to hijack the thread or steal lime light away from VLC as it is good to a degree but why not WMP Home Cinema
Media Player Classic - Home Cinema - Video Player
Am sure that plays dvd's and other items straight off the bat
Whoever programs VLC for OS X doesn't do a brilliant job of it as MKV and some other file formats do not play correctly.
There are currently 1 users browsing this thread. (0 members and 1 guests)