Path attribute has AnyPath type (http://msdn.microsoft.com/en-us/library/aa367562(VS.85).aspx). It is either actual path (or subpath) or it may contain property enclosed in brackets. My guess is that TOOLSDIR is a property containing path where MCT.exe is located. If that assumption is correct, you need to add brackets:
<DirectorySearch .. Path="[TOOLSDIR]" ... Alex -----Original Message----- From: David Bartmess [mailto:david.bartm...@wallst.com] Sent: Friday, June 05, 2009 2:49 PM To: 'General discussion for Windows Installer XML toolset.' Subject: [WiX-users] FileSearch not working. I'm trying to verify that two files exist, using a property with embedded FileSearch. But this doesn't seem to be working. Each time I run it, in the log file it lists it as "0", which is the default property value, from what I've read and how I've got it coded below. Any help would be appreciated... <Property Id="MCT_INSTALLED" Value="0"> <DirectorySearch Id="CheckTOOLSDIR" Path="TOOLSDIR" Depth="0" AssignToProperty="yes"> <FileSearch Id="CheckMCT" Name="MCT.exe"/> </DirectorySearch> </Property> <Property Id="MCT_HAS_RUN" Value="0"> <DirectorySearch Id="MCT_MADE" Path="TOOLSDIR" Depth="0" AssignToProperty="yes"> <FileSearch Id="applications.xml" Name="applications.xml"/> </DirectorySearch> </Property> Log: AppSearch: Property: MCT_INSTALLED, Signature: CheckTOOLSDIR MSI (c) (AC:84) [15:32:30:023]: Note: 1: 1322 2: MSI (c) (AC:84) [15:32:30:023]: Note: 1: 1322 2: AppSearch: Property: MCT_HAS_RUN, Signature: MCT_MADE MSI (c) (AC:84) [15:32:30:023]: Note: 1: 1322 2: MSI (c) (AC:84) [15:32:30:023]: Note: 1: 1322 2: . . . Property(N): MCT_INSTALLED = 0 Property(N): MCT_HAS_RUN = 0 David Bartmess ---------------------------------------------------------------------------- -- OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users