Thanks for the reply Chad. I've tried increasing the Depth to say 4 as well as providing and absolute path to the assembly and when I compile, I get the following error:
Error 1 When the parent DirectorySearch/@Depth attribute is greater than 1 for the DirectorySearch 'GACPath', the FileSearch/@Id attribute must be absent for FileSearch 'CslaFileSearch' unless the parent DirectorySearch/@AssignToProperty attribute value is 'yes'. Remove the FileSearch/@Id attribute for 'CslaFileSearch' to resolve this issue. C:\Source\MS-Intelliscript\ProjectDeployments\ProjectDeployments\eCoPayWebSite.Setup\ConditionChecks.wxi 18 1 eCoPayWebSite.Setup Now I've also tried removing the ID for my FileSearch as the error suggests, but each time I run the installer it stops with my Condition message not matter what I try. I'm trying to essentially provide a base path of %systemroot%\assembly\ and have the installer do a recursive search for the assembly I specify within my FileSearch as the assembly could reside in a number of sub-folders like you specified. I must be missing something simple, because it doesn't seem that it should be so difficult to get this to work. On Mon, Mar 28, 2011 at 4:38 PM, Chad Petersen <chad.peter...@harlandfs.com>wrote: > If you run a CMD prompt and change to c:\windows\assembly folder and > then do a DIR you will likely see GAC, GAC_32 and GAC_MSIL as > subfolders. Yours is apparently in GAC_MSIL. From there it has folders > following a name similar to your DLL name. Then a <version> specific > folder in which your DLL will likely reside. You might try including the > additional folders in your search or possibly increasing the Depth= to > something more like 3. > > Path="%systemroot%\assembly\GAC_MSIL\Csla\<version>" > > -----Original Message----- > From: CoolBreeze [mailto:coolbreeze...@googlemail.com] > Sent: Monday, March 28, 2011 1:15 PM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Problem searching GAC for installed assembly > > I'm having some problems with getting a condition I've defined to work > properly. I have the following condition defined and I'm trying to have > the > installer search the GAC for the existence of the assembly. If the > assembly > isn't present I don't want to proceed with the installation, because > it's a > pre-requisite that it must already exist. > > <Property Id="CSLA"> > <DirectorySearch Id="GACPath" Path="%systemroot%\assembly\" > Depth="0" > AssignToProperty="no"> > <FileSearch Id="CslaFileSearch" Name="Csla.dll" /> > </DirectorySearch> > </Property> > <Condition Message="CSLA 3.6.2 must be installed before you can continue > with the installation.">Installed OR CSLA</Condition> > > Can anyone see what the problem might be? Each time I start the > installer, > it comes up saying that CSLA must be installed, even on a machine that > does > have it installed under C:\Windows\assembly\GAC_MSIL\Csla\... > ------------------------------------------------------------------------ > ------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and publish > your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > ------------------------------------------------------------------------------ > Create and publish websites with WebMatrix > Use the most popular FREE web apps or write code yourself; > WebMatrix provides all the features you need to develop and publish > your website. http://p.sf.net/sfu/ms-webmatrix-sf > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users