The ConfigUpdater.xml file is the script where all the DELMIA Apriso configuration files changes should be specified.
The XML file contains the following elements:
The path can contain the macro
WwwRoot or ProgramFiles. The macro replaces part of the file's path.
You can also use Configuration Variables defined in the DeploymentInfo.xml
file under <drive>\Program
Files\Dassault Systemes\DELMIA Apriso 2021\Website\CentralConfiguration.
For details, see High
Availability Installation Guide.
The value of the newly added key must be placed between these HTML entities: < node's value />.
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><add
key="Foo" value="Bar" /></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: