ClickOnce and com controls

M

moondaddy

I have a .net 2.0 winforms app which I'm deploying via clickonce.
Unfortunately one of the things that needs to be installed during the
clickonce is an MS Access mde application which uses a 3rd party control.
this 3rd party control is an 'ocx' file. In the old days I would install
this Access application using Installsheild which would install and register
the ocx file on the target machines. Now in the click once environment, how
do I get this ocx file installed? One thing I was thinking of was (if
clickonce can't install the ocx) would be to use InstallShield to build a
small install exe which would just install the ocx. then have clickonce
deploy this install.exe along with all the other files that are part of the
clickonce deployment. after everything is copied to the target machine and
before clickonce starts the .net app, it could run the install.exe which
would in turn install the ocx. In this case, how would I get clickonce to
run the install.exe?

any other ideas?

Thanks.
 
G

Gary Chang[MSFT]

Hi,

I am afraid there isn't a solution with ClickOnce Deployment if your
installation needs to register a COM component(e.g. ocx controls). It
cannot register any ActiveX or COM component by itself, or launch any
application after its installation.

The best choice in this scenario is use the Windows Installer package. I
suggest you can refer to the following MSDN article for the difference
between the ClickOnce and Windows Installer approaches:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/ht
ml/clickoncevsinstaller.asp


Thanks!

Best regards,

Gary Chang
Microsoft Community Support
======================================================
PLEASE NOTE the newsgroup SECURE CODE and PASSWORD will be updated at 9:00
AM PST, February 14, 2006. Please complete a re-registration process by
entering the secure code mmpng06 when prompted. Once you have entered the
secure code mmpng06, you will be able to update your profile and access the
partner newsgroups.
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top