Jump to content

Recommended Posts

Posted

Okay I have it packaged up now but does anyone know the uninstall command?

 

I had it call /uninstall.exe in the past but seems that doesn't exist in this version?

Posted

We currently have VLC on every staff laptop image.

 

Despite our advice to staff that we suggest them to use VLC player, some still try to play DVDs with WMP or PowerDVD instead. Have people managed to set VLC as default when there are multiple media players installed? Tried various things but DVD drive always opens in WMP when double clicked.

 

I know staff can right-click and 'Play with VLC' or open VLC and go to Media -> Open but not all staff listen to the advice we give so would be useful if VLC was default when playing DVDs.

Posted

I've also added this reg tweak with my deployment so that if the user double clicks on the DVD drive in My Computer (as most of them do here!) then it will automatically launch VLC as opposed to WMP (which doesn't have the codecs on XP)

 

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DVD\shell\play\command]
@="\"C:\\Program Files\\VideoLAN\\VLC\\vlc.exe\" --no-qt-privacy-ask --no-qt-updates-notif --started-from-file dvd://%1"

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

 

So basically, any DVDs or AudioCDs will play automatically in VLC if the user double clicks the drive icon in My Computer.

  • Thanks 1
Posted

Okay I have the uninstaller there now.

 

Does this work for anyone though in 1.1.10:

 

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

 

Lines: 544-545

 

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"

Posted
Has anyone got a working version of 1.1.10 with the NSIS edits? I've tried and failed. Wondering if you can advise on line numbers of the changes.

Here are the changes I made to my vlc.win32.nsi for v1.1.10...

 

[TABLE=class: grid]

[TR]

[TD]Lines[/TD]

[TD]Replace this...[/TD]

[TD]With this...[/TD]

[/TR]

[TR]

[TD]164[/TD]

[TD]WriteRegStr HKCR "VLC$R0\shell\Open\command" "" '"$INSTDIR\vlc.exe" --started-from-file "%1"'[/TD]

[TD]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"'[/TD]

[/TR]

[TR]

[TD]346[/TD]

[TD]WriteRegStr HKCR ${EXT}\shell\PlayWithVLC\command "" '"$INSTDIR\vlc.exe" --started-from-file --no-playlist-enqueue "%1"'[/TD]

[TD]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"'[/TD]

[/TR]

[TR]

[TD]349[/TD]

[TD]WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC\command "" '"$INSTDIR\vlc.exe" --started-from-file --playlist-enqueue "%1"'[/TD]

[TD]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"'[/TD]

[/TR]

[TR]

[TD]517[/TD]

[TD]'"$INSTDIR\vlc.exe" --started-from-file "%1"'[/TD]

[TD]'"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file "%1"'[/TD]

[/TR]

[TR]

[TD]539[/TD]

[TD]Section $Name_Section02a SEC02a[/TD]

[TD]Section /o $Name_Section02a SEC02a[/TD]

[/TR]

[TR]

[TD]540[/TD]

[TD]SectionIn 1 2 3[/TD]

[TD]SectionIn 3[/TD]

[/TR]

[TR]

[TD]556[/TD]

[TD]Section $Name_Section02b SEC02b[/TD]

[TD]Section /o $Name_Section02b SEC02b[/TD]

[/TR]

[TR]

[TD]557[/TD]

[TD]SectionIn 1 2 3[/TD]

[TD]SectionIn 3[/TD]

[/TR]

[TR]

[TD]582[/TD]

[TD]Section $Name_Section04 SEC04[/TD]

[TD]Section /o $Name_Section04 SEC04[/TD]

[/TR]

[TR]

[TD]599[/TD]

[TD]'"$INSTDIR\vlc.exe" --started-from-file cdda://%1'[/TD]

[TD]'"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file cdda://%1'[/TD]

[/TR]

[TR]

[TD]602[/TD]

[TD]'"$INSTDIR\vlc.exe" --started-from-file dvd://%1'[/TD]

[TD]'"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file dvd://%1'[/TD]

[/TR]

[TR]

[TD]656[/TD]

[TD]'"$INSTDIR\vlc.exe" --started-from-file dvd://%1'[/TD]

[TD]'"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file dvd://%1'[/TD]

[/TR]

[TR]

[TD]662[/TD]

[TD]'"$INSTDIR\vlc.exe" --started-from-file cdda://%1'[/TD]

[TD]'"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file cdda://%1'[/TD]

[/TR]

[TR]

[TD]668[/TD]

[TD]'"$INSTDIR\vlc.exe" --started-from-file vcd://%1'[/TD]

[TD]'"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file vcd://%1'[/TD]

[/TR]

[TR]

[TD]674[/TD]

[TD]'"$INSTDIR\vlc.exe" --started-from-file vcd://%1'[/TD]

[TD]'"$INSTDIR\vlc.exe" --no-qt-updates-notif --no-qt-privacy-ask --no-video-title-show --started-from-file vcd://%1'[/TD]

[/TR]

[TR]

[TD]836[/TD]

[TD]MessageBox MB_YESNO|MB_ICONEXCLAMATION $Message_AlreadyInstalled IDNO done[/TD]

[TD]; MessageBox MB_YESNO|MB_ICONEXCLAMATION $Message_AlreadyInstalled IDNO done[/TD]

[/TR]

[TR]

[TD]841[/TD]

[TD]ExecWait '$R0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file[/TD]

[TD]ExecWait '$R0 /S _?=$INSTDIR' ;Do not copy the uninstaller to a temp file[/TD]

[/TR]

[TR]

[TD]864[/TD]

[TD]"UninstallString" "$INSTDIR\uninstall.exe"[/TD]

[TD]"UninstallString" '"$INSTDIR\uninstall.exe" /S'[/TD]

[/TR]

[TR]

[TD]1043[/TD]

[TD]Section /o "un.$Name_Section92" SEC92[/TD]

[TD]Section "un.$Name_Section92" SEC92[/TD]

[/TR]

[TR]

[TD][/TD]

[TD]Additions[/TD]

[TD][/TD]

[/TR]

[TR]

[TD]599[/TD]

[TD]« Insert text on the right after this line to make VLC the default media player for DVDs[/TD]

[TD]WriteRegStr HKCR "DVD\shell" "" "PlayWithVLC"[/TD]

[/TR]

[/TABLE]

  • Thanks 1
Posted

It's quite easy...

  1. Download and install NSIS v2.46 from here.
  2. 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.
  3. 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.
  4. Overwrite vlc.win32.nsi with your own version, or mine from the link above.
  5. Right-click vlc.win32.nsi and choose Compile NSIS Script*.
  6. 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

* 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.

  • Thanks 1
Posted (edited)

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

VLC Media Player v1.1.11.7z

Edited by Arthur
Posted (edited)
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

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?

Edited by Edu-IT
Posted
You still have to add the bits to the shortcuts, right?

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.

 

Also I take it all you've done is then made the .exe file from NSIS into an MSI?

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.

 

http://i.imgur.com/nJfyX.png

 

If your software deployment system supports EXEs (e.g. CC3/CC4/WKPG etc.) you don't need to bother with the MSI at all. :)

  • Thanks 1
  • 3 weeks later...
Posted (edited)

"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?

Edited by ling
Posted
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.

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.

 

How can I uncheck this one?

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).

 

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

  • 2 weeks later...
Posted
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).

 

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

 

thanks, it works.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...