IniFile Element

WiX Help

IniFile Element

Description

Adds or removes .ini file entries.

Windows Installer references
IniFile Table, RemoveIniFile Table
Parents
Component, Include
Inner Text
None
Children
None
Attributes
Name Type Description Required
Id String Identifier for ini file. Yes
Action Enumeration The type of modification to be made. This attribute's value should be one of the following:
addLine
Creates or updates an .ini entry.
addTag
Creates a new entry or appends a new comma-separated value to an existing entry.
createLine
Creates an .ini entry only if the entry does no already exist.
removeLine
Removes an .ini entry.
removeTag
Removes a tag from an .ini entry.
Yes
Directory String Name of a property, the value of which is the full path of the folder containing the .ini file. Can be name of a directory in the Directory table, a property set by the AppSearch table, or any other property representing a full path.  
Key String The localizable .ini file key within the section. Yes
LongName LongFileNameType Long file name; set this attribute if preferred name is not in 8.3 format.  
Name ShortFileNameType File name of the file in 8.3 format, required for backwards compatibility. Yes
Section String The localizable .ini file section. Yes
Value String The localizable value to be written or deleted. This attribute must be set if the Action attribute's value is "addLine", "addTag", or "createLine".  
See Also
Wix Schema