windows installer - InstallShield XML File Merge -


i using config xml file installer , need when user upgrades installer, new config file generated should merged previous config file, should save changes user have made on previous config files + should show new config file changes , merged.

i used installshield xml file changes option, when changed content in installed config file , upgraded software, instead of merging content, added duplicate node new xml file.

below happening : original xml file :

    <?xml version="1.0"?>     <configuration>    <startup uselegacyv2runtimeactivationpolicy="true"><supportedruntime version="v4.0" sku=".netframework,version=v4.0"/></startup>     </configuration> 

user manually altered uselegacyv2runtimeactivationpolicy="false" , after when user upgraded software, xml becomes

 <?xml version="1.0" encoding="utf-8"?>          <configuration>        <startup uselegacyv2runtimeactivationpolicy="false">         <supportedruntime version="v4.0" sku=".netframework,version=v4.0">               </supportedruntime> </startup>  <startup uselegacyv2runtimeactivationpolicy="true">     <supportedruntime version="v4.0" sku=".netframework,version=v4.0"></supportedruntime> </startup> </configuration> 

so basically, duplicating node instead of merging it, there way installshield, can handle xml config file merges.

thanks in advance

when use installshield xml changes - can modify element if exists, not create if not exist.
please refer xpath expressions documentation it, suppose, example 3, there you.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -