How to load installer property from configuration file

If you need to load an installer property from a configuration file, all you need to do is:

  • create a XML Search operation;
  • create a XML Locator which will go and read the value from the configuration file defined at the step above and store the value into a property.

Let's suppose you have MyAppSettings.xml configuration file which stores 2 attributes: the name of the Company and the name of the User.

    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <AppDetails Company="MyCompany" User="MyUserName"/>
    

Then, your XML Search must be configured like the one below:


When XML Search action is performed, it will go through the content of MyAppSettings.xml, read the values for the 2 attributes (Company and User) and store the values into the corresponding properties (COMPANYNAME and USERNAME) which will then be passed to the installer.