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

Re: [WiX-users] FileSearch on INSTALLLOCATION, whereas INSTALLLOCATION is either registry entry or nested Directory tag

2010-04-29 Thread Viv Coco
that means that I didn't actually do smth wrong in the code, it's just that I can't really control that? On 4/28/2010 12:50 PM, Blair wrote: > Unfortunately with MSI's AppSearch action, you don't have any real control > over the order of the attempted resolution of each of the various > propertie

Re: [WiX-users] FileSearch on INSTALLLOCATION, whereas INSTALLLOCATION is either registry entry or nested Directory tag

2010-04-28 Thread Blair
Unfortunately with MSI's AppSearch action, you don't have any real control over the order of the attempted resolution of each of the various properties. -Original Message- From: Viv coco [mailto:vcotirl...@hotmail.com] Sent: Friday, March 26, 2010 2:18 AM To: WiX Subject: [WiX-users] File

Re: [WiX-users] filesearch not finding file

2009-07-23 Thread Wilson, Phil
d, "InstalledProductName") a.Writeline (" " & pname & " " & prod & "and is installed at " & pid) Next Next Phil Wilson -Original Message----- From: Eric Napier [mailto:napi...@gmail.com] Sent: Wednesday, July 22, 2009 1:45 P

Re: [WiX-users] filesearch not finding file

2009-07-22 Thread Alexander Shevchuk
-Original Message- From: Eric Napier [mailto:napi...@gmail.com] Sent: Wednesday, July 22, 2009 8:00 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] filesearch not finding file Yes, HostDir is the innermost item in my installation hierarchy. It contains a component and an ini

Re: [WiX-users] filesearch not finding file

2009-07-22 Thread Eric Napier
ohn Ludlow To: "General discussion for Windows Installer XML toolset." < wix-users@lists.sourceforge.net> Date: Wed, 22 Jul 2009 21:59:59 +0100 Subject: Re: [WiX-users] filesearch not finding file What sets HostDir? Does HostDir point to a folder containing msi.ini (you can check t

Re: [WiX-users] filesearch not finding file

2009-07-22 Thread Alexander Shevchuk
>So instead I'm checking for the presence of this file. If it's there, I want >to fail the install. Not sure how and when HostDir property gets its value. You might want to make it public (all uppercase and Secure set to "yes") if AppSearch happens in the InstallExecuteSequence. Alex -

Re: [WiX-users] filesearch not finding file

2009-07-22 Thread John Ludlow
it's there, I want > to fail the install. > > -- Forwarded message -- > From: "Wilson, Phil" > To: General discussion for Windows Installer XML toolset. < > wix-users@lists.sourceforge.net> > Date: Wed, 22 Jul 2009 11:09:47 -0700 > Subjec

Re: [WiX-users] filesearch not finding file

2009-07-22 Thread Eric Napier
for Windows Installer XML toolset. < wix-users@lists.sourceforge.net> Date: Wed, 22 Jul 2009 11:09:47 -0700 Subject: Re: [WiX-users] filesearch not finding file What's the goal here? Are you looking for that file, or is it just a marker for a previous version of the product? If it was previo

Re: [WiX-users] filesearch not finding file

2009-07-22 Thread Wilson, Phil
What's the goal here? Are you looking for that file, or is it just a marker for a previous version of the product? If it was previously installed with an MSI package a component search would be more reliable - it doesn't depend on directory locations, and it works if the user changes the install

Re: [WiX-users] FileSearch not working.

2009-06-09 Thread Bob Arnson
David Bartmess wrote: > Is there any way to get around this? Can a TOOLSDIR property be set before > AppSearch is complete, or do I need to hard-code the path in there? > AppSearch, among its many weaknesses, doesn't support a way of explicitly ordering the searches, so you can't rely on one

Re: [WiX-users] FileSearch not working.

2009-06-08 Thread David Bartmess
I found the problem. The TOOLSDIR directory is not created at the time that the global property is being set after AppSearch. Is there any way to get around this? Can a TOOLSDIR property be set before AppSearch is complete, or do I need to hard-code the path in there? Source: . . .

Re: [WiX-users] FileSearch not working.

2009-06-08 Thread David Bartmess
From: Alex Shevchuk [mailto:shevc...@live.com] Sent: Friday, June 05, 2009 5:28 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] FileSearch not working. Path attribute has AnyPath type (http://msdn.microsoft.com/en-us/library/aa367562(VS.85).aspx).

Re: [WiX-users] FileSearch not working.

2009-06-05 Thread Alex Shevchuk
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,

Re: [WiX-users] FileSearch doesn't work (Wix 2.0)

2007-10-12 Thread Sebastian Brand
Have you checked out https://sourceforge.net/tracker/? func=detail&atid=642714&aid=1656236&group_id=105970 yet? One trick is to set a property with the folder first and than add a filesearch using that property. Best regards, Sebastian Brand Instyler Software - http://www.instyler.com On Oc