MSI Factory 2.3

Install XML

Install XML

Previous topic Next topic  

Install XML

Previous topic Next topic  

MSI Factory

Note: See the XML Examples topic for Install XML action examples.

Action

The type of modification to be made to the XML file when the component is installed. Choose from:

Create element

Create a new element under the element specified in Element path. This option requires setting the Element/Attribute name value. The Value item is optional, and if set will cause the new element's text to be set.

Delete value

Delete a value from the element specified in Element path. If Element/Attribute name is specified, the item with that name is deleted. If Element/Attribute name is blank, the text value of the element is deleted.

Set value

Sets a value in the element specified in Element path. If Element/Attribute name is specified, it is set to the value specified in Value. If Element/Attribute name is blank, the text value of the element is set.

XML

File:

The path to the .xml file to configure. You can click the Browse button to select a file path from the Select File Path dialog.

Element path:

The path of the element to be modified.

Element/Attribute name:

The name of the XML node to set or add to the specified element. If this item is left blank, the element's text value will be set.

Value:

The value to be written.

Settings

Sequence:

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.

Permanent

Whether or not the modification should be removed on uninstall. This setting has no effect on uninstall if the action was Delete value.

Note: There is a known issue with the Permanent setting of WiX. This setting does not have any effect on the uninstall. Any XML actions that you create will persist after the uninstall. If you require changes during the uninstall, use Configure XML actions instead.

More Information

WiX Help File: XmlFile Element

MSI Factory Help File: XML Examples


Learn More: Indigo Rose Software - MSI Factory - Buy Now - Contact Us