I'm highly suspect of the values for the Path, Depth and AssignToProperty attributes in your DirectorySearch.
The example sent by John Cooper, replicated below for convenience, didn't set AssignToProperty="no" nor Depth="0". <Fragment> <PropertyRef Id="INSTALLLOCATION" /> <Property Id="WEB_CONFIG_PATH" Secure="yes"> <DirectorySearch Id="InstallLocationSearch" Path="[INSTALLLOCATION]"> <DirectorySearch Id="WebFolderSearch" Path="Web"> <DirectorySearch Id="ContractFolderSearch" Path="2008"> <DirectorySearch Id="WebHostFolderSearch" Path="ProductName"> <FileSearch Id="WebConfigFileSearch" Name="Web.config" /> </DirectorySearch> </DirectorySearch> </DirectorySearch> </DirectorySearch> </Property> </Fragment> The Path value in your example is hard coded and that seems wrong to me. Even if you can guarantee that the MSI will ALWAYS reside at that location I believe that caching by Windows Installer will cause problems for you. My vague memory tells me that others have attempted this and couldn't reliably determine where the MSI was located in other to find a companion file located in the same directory. An obvious workaround is to provide the path to the companion file via a public property. -- Edwin G. Castro On 8/29/13 10:04 AM, K Peters wrote: > Hi, > > I am still struggling with my FileSearch - no matter what I try, > it always pops up the "File does not exist next to MSI" message. > I have tried using "SourceDir" as well as the absolute path to where both > the MSI & the inifile reside - same negative results. > > Does anyone have an idea as to where I am screwing up...? > Thanks, as always, for any pointers! > > > <Property Id="MASTERINIFILE_EXISTS"> > <DirectorySearch > Id="MI_DirSearch" > Path="C:\Wix_Installscripts\Release_3.1.3\Regular_Install\" > Depth="0" > AssignToProperty="no"> > <FileSearch > Id="MI_FileSearch" > Name="Master.ini" /> > </DirectorySearch> > </Property> > > <Condition Message="File does not exist next to MSI"> > <![CDATA[Installed and not MASTERINIFILE_EXISTS]]> > </Condition> > > <Condition Message="File does exist next to MSI"> > <![CDATA[Installed and MASTERINIFILE_EXISTS]]> > </Condition> > ------------------------------------------------------------------------------ > Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! > Discover the easy way to master current and previous Microsoft technologies > and advance your career. Get an incredible 1,500+ hours of step-by-step > tutorial videos with LearnDevNow. Subscribe today and save! > http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users