It may be caused by the use of "." in your ElementPath's. XPath syntax
uses "." to select the current node. See ->
http://www.w3schools.com/XPath/xpath_syntax.asp

Also if you're editing/modifying/creating attributes of your XMLConfig
elements, use ElementId to refer to them. See ->
http://wix.sourceforge.net/manual-wix3/util_xsd_xmlconfig.htm

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: pcristini [mailto:pcrist...@paretoplatform.com] 
Sent: 22 September 2010 22:23
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] XmlConfig not referencing other XmlConfig elements


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.Se
ttings"
        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



------------------------------------------------------------------------------
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