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.Framework.BackgroundLocalFileSettings/setting[\[]@name='DatabaseServer'[\]]" VerifyPath="/configuration/applicationSettings/Microsoft.Lexicon.Framework.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