Hello


I have a web.config which the following entries in the runtime tag:



<configuration>

      .....

      <runtime>

            <assemblyBinding>

                        <dependentAssembly>

                          <assemblyIdentity name="Assemblyname1" 
publicKeyToken="somevalue"/>

                          <bindingRedirect oldVersion="6.6.0.0-6.8.0.9999" 
newVersion="6.9.0.0"/>

                        </dependentAssembly>

                        <dependentAssembly>

                          <assemblyIdentity name="Assemblyname2" 
publicKeyToken="somevalue"/>

                          <bindingRedirect oldVersion="6.6.0.0-6.8.0.9999" 
newVersion="6.9.0.0"/>

                        </dependentAssembly>

                        <dependentAssembly>

                          <assemblyIdentity name="Assemblyname3" 
publicKeyToken="somevalue"/>

                          <bindingRedirect oldVersion="6.6.0.0-6.8.0.9999" 
newVersion="6.9.0.0"/>

                        </dependentAssembly>

                        <dependentAssembly>

                          <assemblyIdentity name="Assemblyname4" 
publicKeyToken="somevalue"/>

                          <bindingRedirect oldVersion="6.6.0.0-6.8.0.9999" 
newVersion="6.9.0.0"/>

                        </dependentAssembly>

            <assemblyBinding>

      <runtime>

<configuration>



I need to update the value of newversion, How do I use xmlconfig or xmlfile to 
update the newversion for all 4 of them?



Tried:


<util:XmlFile Id="test" File="[INSTALLLOCATION]myservice\web.config"
                                    Action="setValue"
                                    
ElementPath="configuration/runtime/assemblyBinding/dependentAssembly[\[]assemblyIdentity[\[]@name='Assemblyname4'[\]][\]]"
                                    Name="newVersion"
                                    Value="SOMETHING"
                                    PreserveModifiedDate="yes"

                                    Sequence="2"/>



But that changes the <dependentAssembly> to <dependentAssembly 
newVersion="SOMETHING"> instead.



Rohit

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to