Dave, thank you so much. Other than the compiler didn't like a blank Name= and just wanted it removed completely, this did the trick. Thanks for the nudge over the edge. You made my Friday...
Chad -----Original Message----- From: David Watson [mailto:dwat...@sdl.com] Sent: Friday, August 27, 2010 3:28 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] XMLConfig question Hi, I've not tried this but, it looks like your ElementPath is referring to the context-param element you will probably need to add Param-value to the end to select that node and leave the Name="" as then it will add to the elements text. <util:XmlConfig Id="XMLMod50" File="C:\web.xml" Action="create" Node="value" On="install" ElementPath="/web-app/context-param[\[]param-name='DEFAULT_LOCALE'[\]]/p aram-value" Name="" Value="other" Sequence="1" /> Dave -----Original Message----- From: Chad Petersen [mailto:chad.peter...@harlandfs.com] Sent: 26 August 2010 22:27 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] XMLConfig question 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 </pre> <BR style="font-size:4px;"> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial" size="2"><a href = "http://www.sdl.com" style="color:005740; font-weight: bold">www.sdl.com</a></font> <BR> <BR> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> ------------------------------------------------------------------------ ------ 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