XmlConfig Element (Util Extension)

Windows Installer XML (WiX) v3.0

XmlConfig Element (Util Extension)

Description
Adds or removes .xml file entries. If you use the XmlConfig element you must reference WixUtilExtension.dll as it contains the XmlConfig custom actions.
Windows Installer references
None
Parents
Component, XmlConfig
Inner Text (xs:string)
This element may have inner text.
Children
Sequence (min: 1, max: 1)
  1. XmlConfig (min: 0, max: unbounded)
Attributes
Name Type Description Required
Id String Identifier for xml file modification. Yes
Action Enumeration This attribute's value must be one of the following:
create
delete
 
ElementId String The Id of another XmlConfig to add attributes to. In this case, the 'Action' 'Node' and 'On' attributes must be left unspecified.  
ElementPath String The XPath of the parent element being modified. Note that this is a formatted field and therefore, square brackets in the XPath must be escaped.  
File String Path of the .xml file to configure. Yes
Name String Name of XML node to set/add to the specified element. Not setting this attribute causes the element's text value to be set. Otherwise this specified the attribute name that is set.  
Node Enumeration This attribute's value must be one of the following:
element
value
document
 
On Enumeration This attribute's value must be one of the following:
install
uninstall
 
PreserveModifiedDate YesNoType Specifies wheter or not the modification should preserve the modified date. Preserving the modified date will allow the file to be patched if no other modifications have been made.  
Sequence Integer Specifies the order in which the modification is to be attempted on the XML file. It is important to ensure that new elements are created before you attempt to add an attribute to them.  
Value String The value to be written. See the Formatted topic for information how to escape square brackets in the value.  
VerifyPath String The XPath to the element being modified. This is required for 'delete' actions. For 'create' actions, VerifyPath is used to decide if the element already exists.  
See Also
Util Schema