Re: [WiX-users] FileSearch issues

2013-09-04 Thread Kai Peters
Phil, your sample code works for me as well. Off to see where mine is different... On Mon, 2 Sep 2013 10:25:03 -0700, Phil Wilson wrote: > My dumb search works just fine - I can't see what the issue is. This works > for me: > > Sample.msi and thing.txt in the same directory. > > > Id="CheckF

Re: [WiX-users] FileSearch issues

2013-09-04 Thread Phil Wilson
It will work only during first install, as Rob most likely knows. During repair, feature change, and uninstall the SourceDir location is (IIRC) the installer directory of the cached MSI file. It's not good design to rely on external files in the same location as the MSI. There are too many failure

Re: [WiX-users] FileSearch issues

2013-09-02 Thread Phil Wilson
My dumb search works just fine - I can't see what the issue is. This works for me: Sample.msi and thing.txt in the same directory. and a custom action in the execute sequence to display the value... msgbox session.property("FILEEXISTS

Re: [WiX-users] FileSearch issues

2013-09-02 Thread Edwin Castro
I searched for WiX FileSearch in same directory as MSI on google. The first hit [1] I received [2] includes a reply from Phil Wilson suggesting the SourceDir [3] or OriginalDatabase [4] (with some additional parsing) might work. [1] http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/H

Re: [WiX-users] FileSearch issues

2013-08-31 Thread Kai Peters
Hi Edwin, no need to be suspicious of Depth and AssignToProperty (firstly, omitting them didn't improve things, nor did I expect it to) as Depth can avoid unnecessary file system traversal (don't know how deep the search would go if no Depth is specified but would assume that default should b

Re: [WiX-users] FileSearch issues

2013-08-29 Thread Edwin Castro
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".

Re: [WiX-users] FileSearch issues

2013-08-29 Thread Kai Peters
Hi John, I don't think so - I understand that perfectly. As I wrote in my post "... where both the MSI & the inifile reside ..." - the ini file sits right beside the MSI at the time of execution, yet it is not found by my Wix code, regardless of how I specify the directory for it; absolute pa

Re: [WiX-users] FileSearch issues

2013-08-29 Thread John Cooper
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 connectio