Bugs item #1648267, was opened at 2007-01-30 22:15
Message generated for change (Comment added) made by pally_sandher
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 :)
----------------------------------------------------------------------
Comment By: Pally Sandher (pally_sandher)
Date: 2007-05-21 11:39
Message:
Logged In: YES
user_id=1798051
Originator: NO
Definitely a bug. Exists in v2.0.4820.0 also.
Very irritating bug as it's completely breaking a feature in my
installer.
In the above example the property would be assigned the path
"C:\Temp\myfile.txt\" which is clearly wrong.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1648267&group_id=105970
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs