FileSearch Element

Windows Installer XML

FileSearch Element

Description
Searches for file and assigns to fullpath value of parent Property
Windows Installer references
DrLocator Table, Signature Table
Parents
ComponentSearch, DirectorySearch, DirectorySearchRef, IniFileSearch, RegistrySearch
Inner Text
None
Children
None
Attributes
Name Type Description Required
Id String Unique identifier for the file search and external key into the Signature table. If this attribute value is not set then the parent element's @Id attribute is used.  
Languages String The languages supported by the file.  
LongName LongFileNameType This attribute has been deprecated; please use the Name attribute instead.  
MaxDate DateTime The maximum modification date and time of the file. Formatted as YYYY-MM-DDTHH:mm:ss, where YYYY is the year, MM is month, DD is day, 'T' is literal, HH is hour, mm is minute and ss is second.  
MaxSize Int The maximum size of the file.  
MaxVersion String The maximum version of the file.  
MinDate DateTime The minimum modification date and time of the file. Formatted as YYYY-MM-DDTHH:mm:ss, where YYYY is the year, MM is month, DD is day, 'T' is literal, HH is hour, mm is minute and ss is second.  
MinSize Int The minimum size of the file.  
MinVersion String The minimum version of the file.  
Name LongFileNameType In prior versions of the WiX toolset, this attribute specified the short file name. This attribute's value may now be either a short or long file name. If a short file name is specified, the ShortName attribute may not be specified. If a long file name is specified, the LongName attribute may not be specified. If you wish to manually specify the short file name, then the ShortName attribute may be specified.  
ShortName ShortFileNameType The short file name of the file in 8.3 format. There is a Windows Installer bug which prevents the FileSearch functionality from working if both a short and long file name are specified. Since the Name attribute allows either a short or long name to be specified, it is the only attribute related to file names which should be specified.  
Remarks
When the parent DirectorySearch/@Depth attribute is greater than 1, the FileSearch/@Id attribute must be absent or the same as the parent DirectorySearch/@Id attribute value, unless the parent DirectorySearch/@AssignToProperty attribute value is 'yes'.
How Tos and Examples
See Also
Wix Schema, ComponentSearch, DirectorySearch, DirectorySearchRef, FileSearchRef, IniFileSearch, RegistrySearch