all groups > dotnet interop > october 2006 >
You're in the

dotnet interop

group:

Regasm'ing component programmatically


Regasm'ing component programmatically André Malafaya Baptista
10/30/2006 7:30:02 AM
dotnet interop:
Hi, all.
I wish to write an installer class that will register my .NET
ServicedComponent class in the COM catalog, just like REGASM does. The
problem is that I can only find ways of adding this component to a COM+
application (new or existing). This is not what I want to do, because this
assembly is supposed to run in-process. I already tried to run is as a COM+
Library application but it does not work properly is some cases. What I
really want is to REGASM it. How can I do this in C#?

Thanks in advance,
Re: Regasm'ing component programmatically Mattias Sjögren
10/30/2006 11:51:34 PM
André,

[quoted text, click to view]

Have you looked at the
System.Runtime.InteropServices.RegistrationServices class?


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Re: Regasm'ing component programmatically André Malafaya Baptista
11/3/2006 2:57:01 AM
[quoted text, click to view]

Thanks, Mattias.
That's exactly what I was looking for.
In such a big world as the .NET Framework, it's hard to find what you need
just by browsing and searching the docs.

Regards
AddThis Social Bookmark Button