Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > How to deploy an ActiveX control from a VS2008 project?
 

How to deploy an ActiveX control from a VS2008 project?

I'm trying to deploy my File Uploader application that I created in VS2008 (c# windows forms) as a ActiveX application on the 'internet' zone such that a user can navigate to a page containing my control and the control will run after they're prompted to trust the application, just like a java application. I can't seem to find any coherent information on making this happen, I've found:

-Info on ClickOnce: this isn't what I want to do since this actually involves installing the application, I want it to run inside the webpage (though if clickonce can be run inside the page I'm all ears!)
-Info on deploying the dll on an intranet: also not what I want to do, I don't want the user to have to modify their .net security settings or add the site as a 'trusted' site.
-References to VisualBasic 5 and creating cab files using the deployment wizard...

I've also gotten vague references to multiple levels of digital signatures and manifest files which may or may not be what I'm looking for but I can't figure out all the signs/certificates required. I managed to make this all work with minimal headaches in Java almost the first time I tried it, I'm impressed that its turning out to be so difficult in ActiveX.

I'm coming up on my wits end on this and could really use some help. Thanks in advance.
ShizamSM  Wednesday, August 19, 2009 6:03 PM
Hi ShizamSM,

I have found a topic talking about ActiveX control deployment.
http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/8ddd0fd2-e1dc-422c-86cc-366be8cf115b

In the thread, Linda Liu has listed the step to create an MSI, add the ActiveX Dll into the MSI and register it.

Hope this helps.

If you have any problem, please feel free to tell me.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Friday, August 21, 2009 7:29 AM
Thank you for replying Kira,
That discusses it but doesn't indicate how to deploy the MSI file within IE. I followed Linda's directions exactly and put the MSI file on my webpage and referenced it in an object tag like so:

<object classid="clsid:cd07741c-684b-4db0-a685-90359257ef8c"codebase="path/to/TheFile.msi#VERSION=1,0,0,0" width="100" height="100" />

The resulting page gives me a prompt asking if its ok to run the application (which is good!) but then nothing loads and there is a square with a red 'x' in it. I got the classid by opening the project for the dll in VS2008 and looking in assembly information (AssemblyInfo.cs) and found this:

// The following GUID is for the ID of the typelib if this project is exposed to COM

[assembly: Guid("cd07741c-684b-4db0-a685-90359257ef8c")]


I can't tell if thats the right number, where would I find it? If I create an object tag that links directly to the dll file (and reconfigure my .Net security settings AND add the site as a trusted site) the program runs so I know the app runs, but I don't want users to do all that setup which is why I'm trying to get it to instal via ActiveX msi/cab/COM etc.


We are very close though, I can feel it! All these prompts are good.

  • Edited byShizamSM Friday, August 21, 2009 11:49 PM
  •  
ShizamSM  Friday, August 21, 2009 11:34 PM

You can use google to search for other answers

Custom Search

More Threads

• check for (but not install) a prerequsite with ClickOnce
• Why VS7 does not take updated environment variable?
• .NET Framework 3.5 SP1 prerequisite - Download prerequisiets from the same location as my application
• Windows Installer : Add text to a dialog
• deployment of vb.net application with MSSQL db
• Update Application ("Check for Updates"-Button)
• Installation With Minimum Size
• Can the initial install and subsequent updates for a ClickOnce deployed app be from a different media
• An error occured attempting to install myappname - System cannot find the file specified - Plz help
• Run time access to Publish Version