I have the following XML to add to a config file
<Configuration>
        <Parent>
                <Child name='first'>
                </Child>
                <Child name='second'>
                </Child>
        </Parent>
</Configuration>

After much huffing and puffing i can now create this XML - problem is I
get an uninstall error along the lines of 'cannot find
Configuration/Parent/Child'.
Here is the WiX stuff.'
<Component Id='Web_Config' Guid='{MY GUID}'>
       <XmlFile Id='WebCongifSettings1' File='[INSTALLDIR]Web.Config'
Action='createElement' Sequence='1' ElementPath="/configuration "
Name="Parent" />
       <XmlFile Id='WebCongifSettings2' File='[INSTALLDIR]Web.Config'
Action='createElement' Sequence='2' ElementPath="/configuration/Parent "
Name="Child" />
       <XmlFile Id='WebCongifSettings3' File='[INSTALLDIR]Web.Config'
Action='setValue' Sequence='3' Name='name' Value="first"
ElementPath="/configuration/Parent/Child" />
       <XmlFile Id='WebCongifSettings4' File='[INSTALLDIR]Web.Config'
Action='createElement' Sequence='4' ElementPath="/configuration/Parent "
Name="Child" />
       <XmlFile Id='WebCongifSettings5' File='[INSTALLDIR]Web.Config'
Action='setValue' Sequence='5' Name='name' Value="second"
ElementPath="//Child[\[]1[\]]" />
 </Component>

Is there a bug or can anyone suggest a different stratergy?

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to