+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 42 of 42
Windows Thread, Rolling out VLC - Do I, or Don't I? in Technical; Failing that, does anyone have a suggestion on how to get around this?...
  1. #31

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,143
    Thank Post
    403
    Thanked 622 Times in 568 Posts
    Rep Power
    181
    Failing that, does anyone have a suggestion on how to get around this?

  2. #32


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,919
    Thank Post
    226
    Thanked 2,676 Times in 1,973 Posts
    Rep Power
    787
    Quote Originally Posted by Edu-IT View Post
    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...

    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"

  3. Thanks to Arthur from:

    Zoom7000 (14th July 2011)

  4. #33


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,919
    Thank Post
    226
    Thanked 2,676 Times in 1,973 Posts
    Rep Power
    787
    My NSI and a MSI wrapper for the EXE (created with WIWW) are attached below.
    Attached Files Attached Files

  5. Thanks to Arthur from:

    Zoom7000 (14th July 2011)

  6. #34
    Zoom7000's Avatar
    Join Date
    Feb 2006
    Location
    London
    Posts
    942
    Thank Post
    306
    Thanked 83 Times in 54 Posts
    Rep Power
    33
    Can anyone please explain how you can compile a new NSI installer?

  7. #35


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,919
    Thank Post
    226
    Thanked 2,676 Times in 1,973 Posts
    Rep Power
    787
    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.

  8. Thanks to Arthur from:

    Zoom7000 (14th July 2011)

  9. #36


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,919
    Thank Post
    226
    Thanked 2,676 Times in 1,973 Posts
    Rep Power
    787
    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
    Attached Files Attached Files
    Last edited by Arthur; 18th July 2011 at 02:59 AM.

  10. #37

    Edu-IT's Avatar
    Join Date
    Nov 2007
    Posts
    7,143
    Thank Post
    403
    Thanked 622 Times in 568 Posts
    Rep Power
    181
    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?
    Last edited by Edu-IT; 18th July 2011 at 03:59 PM.

  11. #38


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,919
    Thank Post
    226
    Thanked 2,676 Times in 1,973 Posts
    Rep Power
    787
    Quote Originally Posted by Edu-IT View Post
    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.

    Quote Originally Posted by Edu-IT View Post
    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.



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

  12. Thanks to Arthur from:

    Edu-IT (19th July 2011)

  13. #39

    Join Date
    Aug 2011
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    "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.

  14. #40


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,919
    Thank Post
    226
    Thanked 2,676 Times in 1,973 Posts
    Rep Power
    787
    Quote Originally Posted by ling View Post
    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.

    Quote Originally Posted by ling View Post
    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).

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

  15. #41

    mac_shinobi's Avatar
    Join Date
    Aug 2005
    Posts
    9,766
    Thank Post
    3,274
    Thanked 1,053 Times in 974 Posts
    Rep Power
    365
    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.

  16. #42

    Join Date
    Aug 2011
    Posts
    2
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    Quote Originally Posted by Arthur View Post
    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
    thanks, it works.

SHARE:
+ Post New Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. VLC Shortcut
    By cooper in forum How do you do....it?
    Replies: 3
    Last Post: 14th August 2012, 01:14 PM
  2. VLC Streaming
    By j17sparky in forum Windows
    Replies: 14
    Last Post: 25th July 2010, 08:05 PM
  3. vlc 1.0.0 is here
    By RabbieBurns in forum AV and Multimedia Related
    Replies: 7
    Last Post: 8th July 2009, 01:58 PM
  4. Rolling out ActiveStudio 3
    By chris17_99 in forum Educational Software
    Replies: 1
    Last Post: 29th April 2009, 12:41 PM
  5. VLC
    By Edu-IT in forum Windows
    Replies: 4
    Last Post: 4th November 2008, 09:13 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •