Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Registering Components At Installation Time
 

Registering Components At Installation Time

Hi,

I have a VS 2005 WinForms project which has a flash player embeded in the form. My project referencesAxInterop.ShockwaveFlashObjects.dll
I created a Setup project for deplyment on prodcution machines. The setup project detects a dependency to the fileFlash10b.ocx. Upon installation and when trying to open the application for the first time, I get an an Unhandled Exception message indicating a class is not registered. After investigations I found that this component is the one causing the problem.

My solution is manually registering it via the regsvr32 command. Although the registration process fails, the application works perfectly when I do that.

I am stuck, what is the proper way to do that automatically at installation time?

Thanks
Leedo  Tuesday, July 14, 2009 5:51 PM
The file properties window in the setup project has a Register property. Setting the OCX's Register property to vsdrfCOM should work.
My advice isthat youneed to be really careful with this. You're redistributing the Flash 10 control -you need a license from Adobe for that, right? -and if you don't install it in the same way (primarily location) then you'll break the client system. For example you cannot install it in your application folder - it needs to be the proper sharing location.
Phil Wilson
PhilWilson  Tuesday, July 14, 2009 9:30 PM
The file properties window in the setup project has a Register property. Setting the OCX's Register property to vsdrfCOM should work.
My advice isthat youneed to be really careful with this. You're redistributing the Flash 10 control -you need a license from Adobe for that, right? -and if you don't install it in the same way (primarily location) then you'll break the client system. For example you cannot install it in your application folder - it needs to be the proper sharing location.
Phil Wilson
PhilWilson  Tuesday, July 14, 2009 9:30 PM
Thanks Phil for the advice. Well, I didn't know about the licensing issue here so really thanks for pointing that out. So what do you suggest one should do. Is this what every one does when they want to play flash files from within their applications? Or there is a better way without the licesing issue?

thx
Leedo  Wednesday, July 15, 2009 3:58 PM
The licence is free as far as I know, and maybe it gives you some info about how to install, and I suspect that maybe there is a Flash merge module.
Phil Wilson
PhilWilson  Wednesday, July 15, 2009 5:49 PM

You can use google to search for other answers

Custom Search

More Threads

• Question re VS 2005 setup projects
• ClickOnce: Error "Application cannot be started. Contact the application vendor"
• Why does a 64 bit app install to "Program Files (x86)" ? And can I change that.
• [Deployment Project] How to skip some windows in "User Interface"
• ClickOnce and client configuration
• Deployment/Setup With Bootstrapper Stuck in a Loop after Rebooting
• How can we add Custom action in clickonce deployment?
• Does developing and ditributing application in Microsoft dotnet framework sdk violate any law
• easy question about installation
• Create an 1) installer with .net 2.0 + program files 2) usb run no installation.