Hi,
   I am trying to use the XmlConfig element of Wix to make an entry into the 
machine.config file. The schema of the nodes to be entered looks like

  <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.Build.Framework" 
publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-99.9.9.9" 
newVersion="3.5.0.0"/>
            </dependentAssembly>
 </runtime>

I am being able to create the node and insert it into the machine.config using 
the XmlConfig element of wix. But the problem I am finding is when there are 
more than one dependent asssemly node already present in the machine.config 
file. For example,

  <runtime>
        <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
            <dependentAssembly>
                <assemblyIdentity name="Microsoft.Build.Framework" 
publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
                <bindingRedirect oldVersion="0.0.0.0-99.9.9.9" 
newVersion="3.5.0.0"/>
            </dependentAssembly>
       <depedentAssembly>
       </dependentAssembly>
 </runtime>

 When I create an empty dependentAssembly  node (the one shown in bold). I need 
to make consequent entries into the empty node and not to any other node. I m 
really not being able to find out how do we specify the XPath in this case . 
Moreover I was having problems with using logical operators like and or not.  
The compiler was giving errors. We are using Wixv3 for our purpose.

Can anyone please help me out?

Thanks and Regards,

Abhradeep Guha Thakurta

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to