ClickOnce and Com dll

H

Harry Strybos

Hi Guys

Maybe this has been asked before however I am not able to find a reference
to it.

I have a project that uses a com .ocx. Sure, the interop does all that ok
and the project works fine in the DVE (because the ocx is installed and
registered on my development pc).

However, when I publish this project to my users (network) via ClickOnce,
the .ocx is not installed (or registered) on the target system.

Can I fix this and if so, how?

Thank you
 
M

Mark

Hi Guys

Maybe this has been asked before however I am not able to find a reference
to it.

I have a project that uses a com .ocx. Sure, the interop does all that ok
and the project works fine in the DVE (because the ocx is installed and
registered on my development pc).

However, when I publish this project to my users (network) via ClickOnce,
the .ocx is not installed (or registered) on the target system.

Can I fix this and if so, how?

Thank you

In project properties, references, have you set CopyLocal to true?
This means the OCX will be used from a local copy in your application
directory, which I believe is essential for ClickOnce.
 
H

Harry Strybos

Mark said:
In project properties, references, have you set CopyLocal to true?
This means the OCX will be used from a local copy in your application
directory, which I believe is essential for ClickOnce.

Yes, the .ocx is set to CopyLocal, however, ClickOnce does not install it to
the client.
 

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