I suspect part of your problem is your concept of what a DirectorySearch or 
FileSearch does.  Both searches look for directories and files that already 
exist at the time of the install.  For example, I use a FileSearch to recover 
the path to a web.config so I can recover it's encrypted connection string 
during an upgrade.  The DirectorySearch and FileSearch look like this:

  <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>

--
John Merryweather Cooper
Build & Install Engineer -- ESA
Jack Henry & Associates, Inc.(r)
Shawnee Mission, KS  66227
Office:  913-341-3434 x791011
jocoo...@jackhenry.com
www.jackhenry.com




-----Original Message-----
From: K Peters [mailto:kpet...@otaksoft.com] 
Sent: Thursday, August 29, 2013 12:05 PM
To: Wix Users List
Subject: [WiX-users] FileSearch issues

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
NOTICE: This electronic mail message and any files transmitted with it are 
intended
exclusively for the individual or entity to which it is addressed. The message, 
together with any attachment, may contain confidential and/or privileged 
information.
Any unauthorized review, use, printing, saving, copying, disclosure or 
distribution 
is strictly prohibited. If you have received this message in error, please 
immediately advise the sender by reply email and delete all copies.


------------------------------------------------------------------------------
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

Reply via email to