Skip to content

FileSearch element

Searches for file and assigns to fullpath value of parent Property

Attributes

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.

MaxDate

xs: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

integer

The maximum size of the file.

MaxVersion

string

The maximum version of the file.

MinDate

xs: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

integer

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 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.

Parents

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’.

See also

ComponentSearch, DirectorySearch, DirectorySearchRef, FileSearchRef, IniFileSearch, RegistrySearch

Windows Installer references