Phil,  To Others,

     Thanks for the reply. So the return value is what is shown below. I 
don't see the words "PROPERTY CHANGE"  setting the property value 
anywhere.  Furthermore, I don't see the property I'm trying to use 
anywhere either. My goal is rather simple, I am just stumbling 
everywhere. If the folder is there, then install the file. Otherwise, 
skip. If the folder is inaccessible, unavailable, or missing, don't 
install the file.

<Property Id="M_USER" Value="C:\Documents and Settings\M" Secure="no"/>
<Property Id="FILEEXISTS">
<DirectorySearch Id="CheckDir" Path="[M_USER]" Depth="0"/>
</Property>

 From reviewing the log files, I don't see the FILEEXISTS property 
anywhere. Does this mean that if the file isn't found the property isn't 
created? My thoughts were it would create the property but it would set 
the value to 0 / no.  If it's not created does the installer default to 
"yes" / "True"?

The file is installed, so I would like to work out why. I don't see any 
references to FILEEXISTS in the log otherwise so I'm perplexed on why 
the condition below is understood as true.

<Component Id="M_WorkAround" 
Guid="{5XA4XXDD-XXXX-4X79-XXXX-D065X918BXX6}" Win64="no" KeyPath="yes">
<Condition>FILEEXISTS</Condition>
<File Id="sysFile.sys" Name="sysFile.sys" Source="sysFile.sys" 
Checksum="yes" />
</Component>

Once again, thanks for your time and effort.
G



> ------------------------------
>
> Message: 3
> Date: Mon, 4 Apr 2011 17:58:13 -0400
> From: "Wilson, Phil"<phil.wil...@invensys.com>
> Subject: Re: [WiX-users] Conditional File Installation via Folder
>       Check
> To: General discussion for Windows Installer XML toolset.
>       <wix-users@lists.sourceforge.net>
> Message-ID:
>       <682e56117f9ba0419d5247669e3f742d8510b15...@invsfoxxchmbx02.corp.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Don't confuse "AppSearch worked fine" with "AppSearch did or didn't find my 
> file", not to mention that AppSearch could be searching for multiple items, 
> and not all of them files.
>
> The indicator is whether the property is set or not. When I look at verbose 
> logs for AppSearch I see an explicit entry "PROPERTY CHANGE" setting the 
> property value to something if it finds it. I can't exactly tell from your 
> message whether it's finding it or not, and what your expectation is.
>
> That folder may not be accessible -if you're not elevated at that time and 
> you're not user M I don't know for sure if you'd see the file (a search in 
> the UI sequence).
>
>
> Phil Wilson
>
>


------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to