Page 1 of 1

ActiveX distribution

Posted: 27 Sep 2006 10:16
by doerrst
Hi,

i try to create a automatic player which can be used on cds. For this i want to use the active-x plugin in my vb.net 2005 program. It works fine if i use it on my own system where vlc is installed, but if i copy the files to another system the control causes a program crash. Do i need to install the player on the destination system or do i just something wrong? The files i copied to the destination system are:
- TestPlayer.exe
- Interop.AXVLC.dll
- AxInterop.AXVLC.dll
- axvlc.dll
- libvlc.dll
- vlc.exe
and the complete plugins folder.

Starting the vlc.exe on the destination system works fine.

Have i forgot any file which causes the crash?

Regards,



Stefan

Posted: 27 Sep 2006 10:52
by karlar
Hey sounds cool, i was thinking about make something like that.

Just a long shot have you registere the axvlc.dll + (perhaps all the .dll but not sure) with regsvr32. I dont know if thats needed at all.

Posted: 28 Sep 2006 23:12
by nkarnold
I've managed to get what your trying to do working in VB 2005.

using a project type of 'Setup and Deployment'

Include the files you have listed
But two important things
You must set the file axvlc.dll Register property to vsdrfCOMSelfReg
This will ensure the Active-X Control is registered.

Next is the plugins, the way I've done it, is to put the plugins into a directory c:\program files\my program name\plugins

You must then createa registry key, again in the setup and deployment project (under the Editor->Registry)
HKLM\Software\VideoLAN\VLC\InstallDir
and I point this to [ProgramFilesFolder]my program name

Notice it doesn't point to the plugins dir. The activex looks for a directory below the InstallDir for a directory call plugins.

It works great, Ive deployed my app to virgin Win2K, XP PC's and it all fine.

If you need any help.. happy to share the info.

Thanks

Posted: 29 Sep 2006 07:47
by doerrst
Thanks - i will try that, but creating registry keys in HKLM and registering dll's is in the most cases not possible because the users doesn't have admin-rights on their clients. If this is needed i need to find another solution for that.

Thanks again for your help.