views:

19

answers:

0

When using regasm to register an assembly for COM interop, one of things it does is create a HKEY_CLASSES_ROOT\CLSID{000…000} registry key with a default value of the ProgId of the COM class (See MSDN article Registering Assemblies with COM).

Is it possible to specify the string that regasm sets as the default value of the key? I.e. Give it a more meaningful name?

For example:

HKEY_CLASSES_ROOT\CLSID{000…000}\Default = "Descriptive name for my really useful class"

instead of:

HKEY_CLASSES_ROOT\CLSID{000…000}\Default = "An.Obscure.Prog.Id"

I guess it would be possible to tweak the registry values after regasm has set them, but it would be easier if I could just persuade regasm to do it.