Adding a New Element

InstallShield 2022

Project:This information applies to the following project types:

Basic MSI
DIM
InstallScript
InstallScript MSI
Merge Module
MSI Database
Transform

You can add a new element to the root element or any element in your XML file.

To add a new element:

1. In the View List under System Configuration, click XML File Changes.
2. In the XML Files explorer, right-click the XML file to which you want to add a new element and click New Element.

InstallShield adds the new element. Rename it as appropriate, and use the tabs that are displayed in the right pane to configure its settings.

Tip:When you are adding elements and subelements under the root element in the XML File Changes view, you can type the full XPath expression for the name of the element, and it will automatically expand in the explorer.

To add a root element and one or more levels of subelements in one step, type the name of the root element plus the subelements, with each separated by a slash. For example, to add a root element called Root, a Sub element under the Root element, and a Sub2 element under the Sub element, type the following:

Root/Sub/Sub2

InstallShield automatically expands it in the explorer so that each element has its own node.

See Also