I'm trying to produce this output in my config file:
<configuration>
        <applicationSettings>
                <Plugin.Dns.Properties.Settings>
                        <setting name="DNSServer" serializeAs="String">
                                <value>smarmyarmy</value>
                        </setting>
                </Plugin.Dns.Properties.Settings>
        </applicationSettings>
</configuration>

This is the code I'm attempting to use:

<util:XmlConfig Id="Config.DNS.Path"
        File="[#Fi.config]"
        On="install"
        Sequence="1"
        Action="create"
        Node="element"
        Name="Plugin.Dns.Properties.Settings"

VerifyPath="//configuration/applicationSettings/Plugin.Dns.Properties.Settings"
        ElementPath="//configuration/applicationSettings" />

<util:XmlConfig Id="Config.DNS.DnsServer.Key"
        File="[#Fi.config]"
        On="install"
        Sequence="2"
        Action="create"
        Node="element"
        Name="setting"
        ElementPath="Config.DNS.Path" />

<util:XmlConfig Id="Config.DNS.DnsServer.Key.Name"
        File="[#Fi.config]"
        On="install"
        Sequence="3"
        Node="value"
        Name="name"
        Value="DNSServer"
        ElementPath="Config.DNS.DnsServer.Key" />
                                
<util:XmlConfig Id="Config.DNS.DnsServer.Key.Serialize"
        File="[#Fi.config]"
        On="install"
        Sequence="3"
        Node="value"
        Name="serializeAs"
        Value="String"
        ElementPath="Config.DNS.DnsServer.Key" />
                                
<util:XmlConfig Id=".Config.DNS.DnsServer.Value"
        File="[#Fi.config]"
        On="install"
        Sequence="4"
        Action="create"
        Node="element"
        Name="value"
        Value="[CONFIG.DNS.DNS_SERVER]"
        ElementPath="Config.DNS.DnsServer.Key" />

When I run it I get an error of:
Failed to find node: Config.DNS.Path in XML file: C:\Program Files
(x86)\Pareto Systems\CRM Admin Tool\CRMAdminTool.exe.config, system error:
-2147020584


Every example I've seen uses the ElementPath the same way I am... 
Also, what does this do if the element already exists? Will it create a new
one? Is it possible to make it so it updateorcreate kinda thing?


-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/XmlConfig-not-referencing-other-XmlConfig-elements-tp5560885p5560885.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to