I've made some headway, but not quite there yet. The closest I've gotten
so far is this code

<util:XmlConfig Id="XMLMod50" File="C:\web.xml" Action="create"
Node="value" On="install"
ElementPath="/web-app/context-param[\[]param-name='DEFAULT_LOCALE'[\]]"
Name="param-value" Value="other" Sequence="1" />

Which results in this value being written to the second line below
rather than it modifying the fourth line. 

<web-app>
        <context-param param-value"other" >
                <param-name>DEFAULT_LOCALE</param-name>
                <param-value>en_US</param-value>
        </context-param>
        <context-param>
                <param-name>DEFAULT_TIMEZONE</param-name>
                <param-value>Pacific</param-value>
        </context-param>
</web-app>

-----Original Message-----
From: Chad Petersen [mailto:chad.peter...@harlandfs.com] 
Sent: Thursday, August 26, 2010 11:26 AM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] XMLConfig question

I have an XML file that looks like this. The goal is to alter the en_US
to some other value.

<web-app>
        <context-param>
                <param-name>DEFAULT_LOCALE</param-name>
                <param-value>en_US</param-value>
        </context-param>
        <context-param>
                <param-name>DEFAULT_TIMEZONE</param-name>
                <param-value>Pacific</param-value>
        </context-param>
</web-app>

I've written a very small installer with this entry

<util:XmlConfig Id="XMLMod50" File="C:\web.xml" Action="create"
Node="value" On="install"
ElementPath="/web-app/context-param[\[]param-name='DEFAULT_LOCALE'[\]]"
Name="./param-value" Value="other"
VerifyPath="/web-app/context-param[\[]param-name='DEFAULT_LOCALE'[\]]"
Sequence="1" />

The verbose log says "Installation failed" near the end, but it doesn't
display an error, it simply rolls back. I'm not sure if my xPath syntax
is wrong or exactly what it doesn't like. Any ideas?

WiX 3.0.5419.0

Thanks


------------------------------------------------------------------------
------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users

worldwide. Take advantage of special opportunities to increase revenue
and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to