Page 1 of 1
automating vlc installation
Posted: 01 Apr 2009 20:57
by dexterm
I have created a Microsoft CAB that will install the vlc ActiveX control to users of my web page.
This process works. However, the ActiveX control is not installed by default (and I need it to). In addition, the vld application is invoked at the end of the install automatically (and I don't want it to).
So, my question - is there a way to install the vlc in an automated fashion with some type of response/answer file where I can specify the defaults?
Re: automating vlc installation
Posted: 01 Apr 2009 22:03
by Jean-Baptiste Kempf
Repackage the VLC and the dlls. But in our installer ActiveX is the default...
Re: automating vlc installation
Posted: 01 Apr 2009 22:27
by revolunet
if you make a vlc plugins auto install, it would be nice to share the .exe/.cab
thanks !
Re: automating vlc installation
Posted: 02 Apr 2009 14:43
by dexterm
JB,
Sorry but I just started using yuor product two days ago. I don't understand what you mean when you say, "repackage the vlc and the dll's"... Repackage them in what fashion?
Plus, I've installed the player both manually as well as via my install. ActiveX was not the default (thus my reason for trying to determine if I can influence the install via a script of some type).
So, do you have a mechanism to automate the install so vlc is installed silently when a web page is opened?
Thanks,
Dexter
Re: automating vlc installation
Posted: 02 Apr 2009 14:58
by dexterm
revolunet,
Your post just made me think....
I followed the example posted on the web site in creating my cab file. So, I am installing the entire VLC application. However, all I need is the actievX control so I can embed the player in a web page. Are you saying that I can install the plug-ins only with the activeX control? IF so, do you have an example you can share on how to do this (or can you point me to an example on the VideoLan web site)?
Thanks,
Dexter
Re: automating vlc installation
Posted: 02 Apr 2009 15:03
by revolunet
sorry no (good) idea...
Re: automating vlc installation
Posted: 02 Apr 2009 16:25
by Jean-Baptiste Kempf
JB,
Sorry but I just started using yuor product two days ago. I don't understand what you mean when you say, "repackage the vlc and the dll's"... Repackage them in what fashion?
Plus, I've installed the player both manually as well as via my install. ActiveX was not the default (thus my reason for trying to determine if I can influence the install via a script of some type).
So, do you have a mechanism to automate the install so vlc is installed silently when a web page is opened?
Thanks,
Dexter
Package axvlc.dll, libvlc.dll, libvlccore.dll and all plugins/ folder in an installer.
Re: automating vlc installation
Posted: 02 Apr 2009 17:29
by Fox-xxxx
Actually u could pasle not all dll to plugins/ folder
it depending of the task, what u want to do with ur activeX (play, stream, transcode,...)
Re: automating vlc installation
Posted: 02 Apr 2009 19:28
by dexterm
I just want to play a network stream.
I have set up my .INF file to create my CAB file like this:
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
axvlc.dll=axvlc.dll
libvlc.dll=libvlc.dll
libvlccore.dll=libvlccore.dll
[axvlc.dll]
FileVersion=0,8,6,0
clsid={9BE31822-FDAD-461B-AD51-BE1D1C159921}
RegisterServer=yes
hook=nsiinstaller
[libvlc.dll]
hook=nsiinstaller
[libvlccore.dll]
FileVersion=0,9,8,1
hook=nsiinstaller
[nsiinstaller]
run=%EXTRACT_DIR%\vlc-0.9.8a-win32.exe /S
I am creating the cab file like this: CABARC.EXE N vlc.cab vlc.inf axvlc.dll libvlc.dll libvlccore.dll vlc-0.9.8a-win32.exe
All of this appears to work.
I have a test web page that invokes the CAB file like this:
<head id="Head1" runat="server">
<title></title>
<script language="javascript" type="text/javascript">
function Init() {
var obj = document.getElementById('vlc');
obj.playlist.clear();
obj.playlist.add('rtsp://192.168.1.229:8554/camera1000040?live'); // replace entry 0
obj.playlist.play();
}
</script>
</head>
<title>VLC test page</title>
<body onload="javascript:Init();" style="background:transparent; foregroune:transparent">
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="vlc.cab"
align="middle" height="226" id="vlc">
<param name="Src" value="rtsp://192.168.1.229:8554/camera1000040?live" />
<param name="Enabled" value="1" />
<param name="AutoPlay" value="True" />
</object>
</body>
</html>
The problem is that active option is NOT being taken as default. Sine, I am using the "silent" option, I need to set it from within the cab. Is there a way to set the option to install activeX?
Re: automating vlc installation
Posted: 09 Apr 2009 13:32
by jyo
You need to create VLC installer (.exe in case of windows) again.
VLC used NSIS for creating installers.
Steps to follow for Windows
1. Download VLC installation zip from VLC site.
2. Unzip in a dir
3. you will find a 'vlc.win32.nsi'.
4. Download NSIS (
http://nsis.sourceforge.net/Download). Install it.
5. Open vlc.win32.nsi file with NSIS editor.
6. Change the following lines
"Section "ActiveX plugin" SEC04
SectionIn 1 3"
to
"Section "ActiveX plugin" SEC04
SectionIn 1 2 3 RO"
Where RO represents the Required attribute.
7. Compile the updated .nsis file using NSIS editor
8. It will create a new vlc.exe. This VLS installer will have ActiveX by default.
HTH
Re: automating vlc installation
Posted: 10 Apr 2009 07:52
by Yaffle
And remove "\o" option for section!
Re: automating vlc installation
Posted: 10 Apr 2009 14:18
by dexterm
Thanks for all the suggestions but, this hasn't gotten way too complicated. Based on what I just read, I downloaded the source-code, a NSIS installer...discovered I needed something to handle a "tarball".
I've been instructed to just copy the activeX control and create our own installer that will register the activeX control with regsvr. If the plug-ins are needed, we will include in our install.
The bottom line is, all I want to install is the activeX control and NOT the full-blown vlc installation.
So, can anyone tell me the name of the activeX control? I've installed the full-blown vlc installtion on my pc. What folder can I find the control in?
Thanks