I haven't tried this in WiX itself but because you want to get to the child node <value> shouldn't your XPath query have "/value" at the end?
Something like this: "/configuration/applicationSettings/Microsoft.Lexicon.Framework.Backgrou ndLocalFileSettings/setting[@name='DatabaseServer']/value" Cheers Sharad Patel -----Original Message----- From: Gregg Swanson [mailto:gregg.swan...@microsoft.com] Sent: Tuesday, 8 February 2011 10:10 a.m. To: wix-users@lists.sourceforge.net Subject: [WiX-users] Assistance using XmlConfig (assuming that is thecorrect hammer for this issue) Hello, I am looking for some help using XmlConfig, assuming that XmlConfig is the correct hammer for this issue. I have an app.config file that I would like to modify when it is installed, a sample config file - <applicationSettings> <Microsoft.Lexicon.Framework.BackgroundLocalFileSettings> <setting name="DatabaseServer" serializeAs="String"> <value>(local)</value> </setting> <setting name="DefaultDatabase" serializeAs="String"> <value>TexusCatalog</value> </setting> </Microsoft.Lexicon.Framework.BackgroundLocalFileSettings> </applicationSettings> I would like to replace the strings "<value>(local)</value>" and "<value>TexusCatalog</TexusCatalog> with the contents of a property. In tried the following line of WIX to accomplish the task - <util:XmlConfig Id="Config.Update" Action="create" Sequence="1125" ElementPath="/configuration/applicationSettings/Microsoft.Lexicon.Framew ork.BackgroundLocalFileSettings/setting[\[]@name='DatabaseServer'[\]]" VerifyPath="/configuration/applicationSettings/Microsoft.Lexicon.Framewo rk.BackgroundLocalFileSettings/setting[\[]@name='DatabaseServer'[\]]" File="[MyModuleDirectory]$(var.StorageAgentWindowsService.TargetFileName ).config" Node="value" Name ="value" Value="[CATALOGSERVER]" On="install"/> This resulted in a fragment that looked like this - <setting name="DatabaseServer" serializeAs="String" value="myserservername"> <value>(local)</value> </setting> I am new to WIX so any help would be appreciated. Thanks, Gregg ------------------------------------------------------------------------ ------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users