ProfK
ProfK

Reputation: 51063

How to find a COM dll installation working back from the Interop dll

I have a project that references a COM dll, and the Interop assembly is available and visible in my project, but I would like to locate the actual COM dll and dependencies, so that I can build a complete deployment package.

Short of just searching the registry in Regedit, is there anything else I can do to get a grip on this COM package?

Upvotes: 1

Views: 431

Answers (1)

Tim Robinson
Tim Robinson

Reputation: 54714

You'll always end up going to the registry. You can obtain CLSIDs from the interop, by looking for [Guid] attributes on classes. From these, you can look in HKEY_CLASSES_ROOT\CLSID\<guid>\InprocServer32 for the location of the DLL.

The OleView tool -- included with Visual Studio -- is helpful for this. One you locate your COM class under "All Objects", it can show you all the relevant registry entries in one place.

Upvotes: 3

Related Questions