Bugs item #1648267, was opened at 2007-01-30 16:15
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1648267&group_id=105970
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lorne Laliberte (lornelaliberte)
Assigned to: Nobody/Anonymous (nobody)
Summary: FileSearch - omitting the Id does not return the parent dir
Initial Comment:
The WiX documentation for the FileSearch element says: "Specify the Id when you
want to find the path to a file. Leave the Id absent if you want to find the
parent directory of a file."
I tested this in the current 3.0.2211.0 release with the following search
property:
<Property Id="MYFILE">
<DirectorySearch Depth='0' Id="dir_search_1" Path="C:\Temp\">
<FileSearch Name="myfile.txt" />
</DirectorySearch>
</Property>
...which finds the file just fine, however it sets the property MYFILE to the
full path including the filename.
Based on the documentation, I expected it to return the path up to but not
including the filename.
(I'm checking the value of MYFILE using the MSI log output and by writing it to
a Registry value.)
So:
- the documentation is incorrect, or
- there is a bug, or
- I'm doing something wrong :)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1648267&group_id=105970
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs