Bugs item #1648267, was opened at 2007-01-30 14:15
Message generated for change (Settings changed) made by pmarcu
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: candle
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Lorne Laliberte (lornelaliberte)
>Assigned to: pmarcu (pmarcu)
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 04: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: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to