XML File Overview

The ConfigUpdater.xml file is the script where all the DELMIA Apriso configuration files changes should be specified.

Elements

The XML file contains the following elements:

Usage

This an example of the XML file usage:

<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
 <configFiles>
   <configFile path="${ProgramFilesPath}WebSite\CentralConfiguration\CentralConfiguration.xml" >
     <actions>
       <action type="Change">
         <xPath>//configuration/FlexNet.DataServices/add[@key='EntitiesAssemblies']/@value</xPath>
         <value>FlexNet.SystemServices, Version=10.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxx|FlexNet.Entities.Processes, Version=10.0.0.0, Culture=neutral, PublicKeyToken=xxxxxxxxxxxxxxxx</value>
       </action>
       <action type="Add">
         <xPath>//configuration/FlexNet.DataServices</xPath>
         <value>&lt;add key="Foo" value="Bar" /&gt;</value>
         <comment evaluateExpression="true">This key has been added at $[CurrentDateAndTime]</comment>
       </action>
       <action type="Remove" optional="true">
         <condition xPath="/configuration/FlexNet.DataServices/add[@key='UseAdvancedConnectionSettings' and @value='False']" type="Exists" />
         <xPath>/configuration/FlexNet.DataServices/add[@key='UseAdvancedConnectionSettings']</xPath>
       </action>
      <action type="RemoveByComment" optional="true">
         <condition xPath="/configuration/FlexNet.DataServices/add[@key='UseStandardLoginUserID' and @value='False']" type="Exists" />
         <xPath>/configuration/FlexNet.DataServices/add[@key='UseStandardLoginUserID']</xPath>
        <comment evaluateExpression="true">This key has been removed at $[CurrentDateAndTime]</comment>
       </action>
     </actions>
   </configFile>
 <configFile path="${ProgramFilesPath}WebSite\Portal\web.config">
     <actions>
       <action type="Change">
         <xPath>/configuration/appSettings/add[@key="CentralConfigurationFile"]/@value</xPath>
         <searchPattern regEx="true" ignoreCase="true">.+(?=\/CentralConfiguration\/)</searchPattern>
         <value evaluateExpression="true">${WebSitePath}</value>
       </action>
     </actions>
   </configFile>
 </configFiles>
</Configuration>

The result will be that in the CentralConfiguration.xml file:

The result in web.config file: