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 

-----Original Message-----
From: Gus Nassar [mailto:gnas...@drewtech.com] 
Sent: Monday, April 04, 2011 2:12 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditional File Installation via Folder Check

Hello,

     I am having an issue when I attempt a conditional file installation 
based on a folder being present. Currently I have the following:

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

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


     Unfortunately, the installer always defaults to '1'. At the same 
time it also does the following:
         AppSearch: Property: FILEEXISTS, Signature: CheckFileDir
             MSI (c) (14:58) [17:05:09:650]: Note: 1: 2262 2: Signature 
3: -2147287038
         Action ended 17:05:09: AppSearch. Return value 1.

     According to a blog entry by Heath Stewart that should be|| 
STG_E_FILENOTFOUND, which could mean exactly what I want: The file isn't 
present. If that's the case, why is 1 being returned from AppSearch?


Thank You for your time.
G


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


*** Confidentiality Notice: This e-mail, including any associated or attached 
files, is intended solely for the individual or entity to which it is 
addressed. This e-mail is confidential and may well also be legally privileged. 
If you have received it in error, you are on notice of its status. Please 
notify the sender immediately by reply e-mail and then delete this message from 
your system. Please do not copy it or use it for any purposes, or disclose its 
contents to any other person. This email comes from a division of the Invensys 
Group, owned by Invensys plc, which is a company registered in England and 
Wales with its registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 
7AW (Registered number 166023). For a list of European legal entities within 
the Invensys Group, please go to 
http://www.invensys.com/legal/default.asp?top_nav_id=77&nav_id=80&prev_id=77.

You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail 
recept...@invensys.com. This e-mail and any attachments thereto may be subject 
to the terms of any agreements between Invensys (and/or its subsidiaries and 
affiliates) and the recipient (and/or its subsidiaries and affiliates).



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