Home All Groups Group Topic Archive Search About

How to find out the "GUID" of installed assembly?

Author
25 Apr 2006 2:23 PM
Alvaro E. Gonzalez
Hi;

How to find out the "GUID" of installed assembly?

Tks.

Alvaro

Author
25 Apr 2006 10:28 PM
Mattias Sjögren
Alvaro,

>How to find out the "GUID" of installed assembly?

Which GUID do you have in mind, and what do you need it for?


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
26 Apr 2006 4:23 PM
Alvaro E. Gonzalez
Author
26 Apr 2006 7:40 PM
Mattias Sjögren
>In setup project I'm adding a "Launch Condition" and require
>ComponentId (GUID) of Oracle.DataAccess.DLL like valid value of the
>condition.

I'm no setup expert but this page

http://msdn2.microsoft.com/en-us/library/f09xywha(VS.80).aspx

recommends using a tool such as MSI Spy to determine the Component ID
of an installed component. Note that this GUID is part of the MSI
package, it's not really a property of the assembly.


Mattias

--
Mattias Sjögren [C# MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Author
25 Apr 2006 10:30 PM
jkf35
Two ways:

theAssembly.GetCustomAttributes(GetType(GuidAttribute))
or
Marshal.GetTypeLibGuidForAssembly(theAssembly)

- John Fullmer

AddThis Social Bookmark Button