Calling Assembly.Load and checking the GlobalAssemblyCache property should work. Another alternative might be the obscure IAssemblyCache::QueryAssemblyInfo call (C++).
Phil Wilson -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe Kaplan Sent: Friday, August 25, 2006 10:56 AM To: Kevin Dente; Bob Arnson Cc: Wix Users Subject: Re: [WiX-users] Search for a GAC component This sounds like a slightly hard problem. I think you might need to either have a CA that calls GACUTIL -l and tries to capture the output of it somehow to determine if the assembly is there or have a .NET CA that attempts to load the assembly based on its full name and see if that works, returning a value based on that. Ick. Let us know what you come up with. This does sound like a helpful feature for the WiX 3 NetFx extension to support. :) Joe K. ----- Original Message ----- From: Kevin Dente To: Bob Arnson Cc: Wix Users Sent: Friday, August 25, 2006 11:49 AM Subject: Re: [WiX-users] Search for a GAC component Sorry, bad choice of words there. I really should have said "assembly", not "component". The check would be for a third-party assembly, to ensure that the prerequisites for our product our installed before they can run our installer. Sounds like there's nothing there for that right now. Thanks, Kevin On 8/24/06, Bob Arnson <[EMAIL PROTECTED]> wrote: Kevin Dente wrote: > Is there a recommended way to verify that a specific component is > installed in the GAC as a pre-requisite for an install? All I'm seeing > right now is a FileSearch, and that seems a little hack-ish (since the > structure of the GAC is supposedly opaque). When you say "component," are you asking about an MSI component or are you looking to detect any assembly regardless of how it was installed? For the former, <ComponentSearch> will do. There isn't a way to detect assemblies generically -- though if you wanted to write one, I'm sure it would be appreciated.<g> -- sig://boB http://bobs.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users