all groups > visual studio .net setup > august 2006 >
You're in the

visual studio .net setup

group:

How to register COM component during installation



How to register COM component during installation Mokles
8/9/2006 8:46:01 PM
visual studio .net setup: I would like to register a COM component on the client machine during the
installation of a .Net program. Can I do it through the .Net setup project?
Can someone lead to the right direction?

Thanks,
Chanchal
RE: How to register COM component during installation Charles Waudby
8/10/2006 3:03:02 PM
If you add the COM object to the setup project one of the file properties is
Register and one option allows for self registration.

That said, if the COM object is being called from .Net then you should look
at creating a Primary Interop Assembly and creating a merge module for it. As
long as you sign it, it can be installed in the GAC and you will avoid
version conflicts.

Search MSDN for primary interop assemblies and COM, eg:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpcongeneratingprimaryinteropassemblies.asp

[quoted text, click to view]
RE: How to register COM component during installation Mokles
8/10/2006 9:28:02 PM
Thanks Charles. It seems to be the answer I was looking for. I will try it out.

The COM object is from a License protection component. They have done
Interop thing. so I do not need to worry about it.

Mokles

[quoted text, click to view]
RE: How to register COM component during installation Charles Waudby
8/11/2006 12:15:01 AM
If it is from a 3rd party you should try to get a merge module from them as
there is a risk otherwise of confilcts if someone else uses the same
component but perhaps a different version.

[quoted text, click to view]
AddThis Social Bookmark Button