Edu-IT Posted July 13, 2011 Posted July 13, 2011 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?
protocol Posted July 13, 2011 Posted July 13, 2011 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.
Zoom7000 Posted July 13, 2011 Posted July 13, 2011 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. 1
Edu-IT Posted July 13, 2011 Posted July 13, 2011 Any of you that are using this suggest how you go about uninstalling it? Do you have an uninstall.exe?
Edu-IT Posted July 13, 2011 Posted July 13, 2011 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"
Edu-IT Posted July 13, 2011 Posted July 13, 2011 Failing that, does anyone have a suggestion on how to get around this?
Arthur Posted July 14, 2011 Posted July 14, 2011 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] 1
Arthur Posted July 14, 2011 Posted July 14, 2011 My NSI and a MSI wrapper for the EXE (created with WIWW) are attached below. VLC Media Player v1.1.10.7z 1
Zoom7000 Posted July 14, 2011 Posted July 14, 2011 Can anyone please explain how you can compile a new NSI installer?
Arthur Posted July 14, 2011 Posted July 14, 2011 It's quite easy...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 * 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. 1
Arthur Posted July 18, 2011 Posted July 18, 2011 (edited) New NSIS script for VLC Media Player v1.1.11 attached. FeaturesMakes 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 silentlyVLC Media Player v1.1.11.7z Edited July 18, 2011 by Arthur
Edu-IT Posted July 18, 2011 Posted July 18, 2011 (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 July 18, 2011 by Edu-IT
Arthur Posted July 19, 2011 Posted July 19, 2011 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. 1
ling Posted August 5, 2011 Posted August 5, 2011 (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 August 5, 2011 by ling
Arthur Posted August 5, 2011 Posted August 5, 2011 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
mac_shinobi Posted August 6, 2011 Posted August 6, 2011 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.
ling Posted August 18, 2011 Posted August 18, 2011 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now