"/configuration/applicationSettings/RollCall.Properties.Settings/setting[\[]
[...@key='project'[\]]/@value"

Would become:

"/configuration/applicationSettings/RollCall.Properties.Settings/settin...@k
ey='project']/@value"

Except that the repeated "[" char is confusing the formatted syntax parser
since there are "]" chars that follow.

Remove the extraneous "[" in front of the "@key".

At that point, the XPath will look like:

"/configuration/applicationSettings/RollCall.Properties.Settings/setti...@ke
y='project']/@value"

Which means:

The "value" attribute of the "setting" element with an attribute "key" that
is set to the value "project" that is a child of
"RollCall.Properties.Settings" which itself is a child of
"applicationSettings" which itself is a child of the document element named
"configuration". Unless my XPath parsing skills have been temporarily
misguided.

-----Original Message-----
From: Chris Jokinen [mailto:chr...@directron.us] 
Sent: Tuesday, October 13, 2009 3:25 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] help with error LGHT0204: ICE03: Invalid format string

error LGHT0204: ICE03: Invalid format string; Table: XmlFile, Column:
ElementPath, Key(s): RollCall.exe.config.project

 

 

<util:XmlFile Id="RollCall.exe.config.project" Action="setValue"
ElementPath="/configuration/applicationSettings/RollCall.Properties.Settings
/setting[\...@key='project'[\]]/@value"
File="[INSTALLLOCATION]\RollCall.exe.config" Value="[PROJECT]"/>

 

I have tried setting the ElementPath a few different ways and I am still
missing something.sorry I do not have much experience with xpath.looks
simple enough.

 

<?xml version="1.0" encoding="utf-8" ?>

<configuration>

    <configSections>

.

    </configSections>

    <applicationSettings>

        <RollCall.Properties.Settings>

            <setting name="ip_address" serializeAs="String">

                <value>192.168.0.10</value>

            </setting>

            <setting name="host" serializeAs="String">

                <value>www.yahoo.com</value>

            </setting>

            <setting name="project" serializeAs="String">

                <value>yahoo</value>

            </setting>

        </RollCall.Properties.Settings>

    </applicationSettings>

</configuration>

 

Chris

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to