When you register a c# class as COM object with the Attribute
ComVisible(true), Visual Studio, or in our case the installer program handles
all the registry entries.
One entry made be the installer is the default value underneath the Class
GUID.
Like "HKEY_CLASSES_ROOT\CLSID\{GUID of the class}\Default"
This value is set to "namespace.classname" of the registered c# class.
My question is, can i change this value of this register item by aplying a
attribut to the c# class (in the source code) or is there any other method to
tell the setup program the wanted value for this register item.
Thanks, Markuks
Mattias Sjögren - 30 Mar 2007 23:56 GMT
>My question is, can i change this value of this register item by aplying a
>attribut to the c# class (in the source code)
Yes, the ProgIdAttribute.
Mattias

Signature
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Markus - 31 Mar 2007 13:28 GMT
Thanks a lot!
> >My question is, can i change this value of this register item by aplying a
> >attribut to the c# class (in the source code)
>
> Yes, the ProgIdAttribute.
>
> Mattias