Skip to main content
Version: v3

IniFileSearch Element

Description
Searches for file, directory or registry key and assigns to value of parent Property
Windows Installer references
IniLocator Table, Signature Table
Parents
ComplianceCheck, Property
Inner Text
None
Children
Choice of elements (min: 0, max: 1)
Attributes
NameTypeDescriptionRequired
IdStringExternal key into the Signature table.Yes
FieldIntegerThe field in the .ini line. If field is Null or 0, the entire line is read. 
KeyStringThe key value within the section.Yes
LongNameLongFileNameTypeThis attribute has been deprecated; please use the Name attribute instead. 
NameLongFileNameType In prior versions of the WiX toolset, this attribute specified the short name. This attribute's value may now be either a short or long name. If a short name is specified, the ShortName attribute may not be specified. If a long name is specified, the LongName attribute may not be specified. Also, if this value is a long name, the ShortName attribute may be omitted to allow WiX to attempt to generate a unique short name. However, if you wish to manually specify the short name, then the ShortName attribute may be specified. Yes
SectionStringThe localizable .ini file section.Yes
ShortNameShortFileNameType The short name of the file in 8.3 format. This attribute should only be set if the user wants to manually specify the short name.  
TypeEnumerationMust be file if last child is FileSearch element and must be directory if last child is DirectorySearch element. This attribute's value must be one of the following:
directory
A directory location.
file
A file location. This is the default value.
raw
A raw .ini value.
 
See Also
Wix Schema, ComponentSearch, RegistrySearch