Skip to main content
Version: v3

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
NameTypeDescriptionRequired
IdStringUnique 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. 
LanguagesStringThe languages supported by the file. 
LongNameLongFileNameTypeThis attribute has been deprecated; please use the Name attribute instead. 
MaxDateDateTimeThe 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. 
MaxSizeIntThe maximum size of the file. 
MaxVersionStringThe maximum version of the file. 
MinDateDateTimeThe 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. 
MinSizeIntThe minimum size of the file. 
MinVersionStringThe minimum version of the file. 
NameLongFileNameType 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.  
ShortNameShortFileNameType 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 0, 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