Jump to content

vlc media player extra options


ripken204

Recommended Posts

the switch for vlc is /S but the problem is that i want to do a full install where i click some boxes for what i want to install. does any1 know how i should do this via a switch or should i just use autoit??

Link to comment
Share on other sites


VideoLAN uses the NSIS Installer. NSIS supports /S, /D=InstallPath or /NCRC for no crc checking. Unless the author adds more switches to the NSIS Installer, which is rare, then that is it.

Link to comment
Share on other sites

  • 2 years later...
When I use the /S switch, the mozilla Plugin doesn't get installed. If anyone know, how i can get it installed, let me know.

Because /S switch will install with the default options (recommended).

Link to comment
Share on other sites

So, is there a way to install with FULL options?

Which components do you need from these:

start menu shortcut

desktop shortcut

Mozilla plugin

ActiveX plugin

Context Menus

File type associations

Delete preferences and cache?

Link to comment
Share on other sites

Try this:

#cs ----------------------------------------------------------------------------

AutoIt Version: 3.2.10.0
Author: myName

VLC media player 0.8.6d

Script Function:
Template AutoIt script.

#ce ----------------------------------------------------------------------------

; Script Start - Add your code below here

Opt("TrayIconDebug", 1)
Opt("SendKeyDelay", 200)
; Executable file name
$EXECUTABLE = "vlc-0.8.6d-win32.exe"
; Start menu shortcut
$StartMenu = "1"
; Desktop shortcut
$Desktop = "1"
; Mozilla plugin
$Mozilla = "1"
; ActiveX plugin
$ActiveX = "1"
; Context menus
$Context = "1"
; File type associations
$FileAssoc = 1
; Delete preferences and cache
$Cache = "1"
; Installation folder
$INSTALLLOCATION = @ProgramFilesDir & "\VideoLAN\VLC"

If FileExists($INSTALLLOCATION & "\vlc.exe") Then
MsgBox(0x40010, @ScriptName, "Please uninstall previous version of VLC media player before using this script", 4)
Exit
EndIf

; Run the installer
Run($EXECUTABLE)

; Please select a language.
WinWait("Installer Language", "Please select a language.")
WinActivate("Installer Language", "Please select a language.")
ControlClick("Installer Language", "", "Button1")

; Welcome to the VideoLAN VLC media player 0.8.6d Setup Wizard
WinWaitActive("VideoLAN VLC media player 0.8.6d Setup", "Welcome to the VideoLAN VLC media player 0.8.6d Setup Wizard")
ControlClick("VideoLAN VLC media player 0.8.6d Setup", "", "Button2")

; License Agreement
WinWaitActive("VideoLAN VLC media player 0.8.6d Setup ", "License Agreement")
ControlClick("VideoLAN VLC media player 0.8.6d Setup ", "", "Button2")

; Choose Components
WinWaitActive("VideoLAN VLC media player 0.8.6d Setup ", "Choose Components")
Send("{TAB}")
Send("{DOWN}")
If $StartMenu = 0 Then
Send("{SPACE}")
EndIf
Send("{DOWN}")
If $Desktop = 0 Then
Send("{SPACE}")
EndIf
Send("{DOWN}")
If $Mozilla = 1 Then
Send("{SPACE}")
EndIf
Send("{DOWN}")
If $ActiveX = 0 Then
Send("{SPACE}")
EndIf
Send("{DOWN}")
If $Context = 1 Then
Send("{SPACE}")
EndIf
Send("{DOWN}")
If $FileAssoc = 0 Then
Send("{SPACE}")
EndIf
Send("{DOWN}")
If $Cache = 1 Then
Send("{SPACE}")
EndIf
ControlClick("VideoLAN VLC media player 0.8.6d Setup ", "", "Button2")

; Choose Install Location
WinWaitActive("VideoLAN VLC media player 0.8.6d Setup ", "Choose Install Location")
ControlSetText("VideoLAN VLC media player 0.8.6d Setup ", "", "Edit1", "")
Sleep(1000)
ControlSetText("VideoLAN VLC media player 0.8.6d Setup ", "", "Edit1", $INSTALLLOCATION)
ControlClick("VideoLAN VLC media player 0.8.6d Setup ", "", "Button2")

; Completing the VideoLAN VLC media player 0.8.6d Setup Wizard
WinWaitActive("VideoLAN VLC media player 0.8.6d Setup ", "Completing the VideoLAN VLC media player 0.8.6d Setup Wizard")
ControlCommand("VideoLAN VLC media player 0.8.6d Setup ", "", "Button4", "UnCheck", "")
ControlClick("VideoLAN VLC media player 0.8.6d Setup ", "", "Button2")

Edit variables from the top to meet your desire.

Edited by radix
Link to comment
Share on other sites

  • 1 year later...

1. Download and install nsis from http://nsis.sourceforge.net/Download. This will let you recompile the installation program.

2. Download and extract the VLC Windows Zip package from http://www.videolan.org/vlc/download-windows.html.

3. Open the vlc.win32.nsi file with Notepad

4. The component list begins at about line 502. Component look like "Section "Component Name" SEC0#. If a '/o' is in front of the component name, remove the '/o' e.g. Section $Name_Section03 SEC03

5. Change SectionIn from 3 to 1 2 3

6. That's all..compile script.

If you don't want VLC to be associated with some file types, put a semicolon in front of the line containing that extension.

Edited by targa
Link to comment
Share on other sites

  • 3 months later...

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...