Thanks for the help! I also had to change to use XmlFile versus XmlConfig. The 
following fragment is working.

          <util:XmlFile Id="Config.Update"
                   Action="setValue"
                   Sequence="1125"
                   
ElementPath="/configuration/applicationSettings/Microsoft.Lexicon.Framework.BackgroundLocalFileSettings/setting[\[]@name='DatabaseServer'[\]]/value"
                   
File="[MyModuleDirectory]$(var.StorageAgentWindowsService.TargetFileName).config"
                   Value="[CATALOGSERVER]" />

Thanks,
Gregg

-----Original Message-----
From: bharat jasti [mailto:bharat.ja...@gmail.com] 
Sent: Monday, February 07, 2011 4:51 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Assistance using XmlConfig (assuming that is 
thecorrect hammer for this issue)

Modify the Configurations as below and try

<util:XmlConfig Id="Config.Update"
                  *Action="setValue"
*                  Sequence="1125"
*
ElementPath="/configuration/applicationSettings/Microsoft.Lexicon.Framework.BackgroundLocalFileSettings/setting[\[]@name='DatabaseServer'[\]]/value"

VerifyPath="/configuration/applicationSettings/Microsoft.Lexicon.Framework.BackgroundLocalFileSettings/setting[\[]@name='DatabaseServer'[\]]/value"
*
File="[MyModuleDirectory]$(var.StorageAgentWindowsService.TargetFileName).config"
                  *Value="[CATALOGSERVER]"
*                  On="install"/>

Action = "createElement" is to create a new element. As the element is already 
existing you should use Action = "setValue"

Thanks & Regards,
Bharat Jasti
Web Applications Developer
Rainbow Design Services, Inc.



On Mon, Feb 7, 2011 at 4:51 PM, Sharad Patel <spa...@winscribe.com> wrote:

> 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.Backgr
> ou 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.Fram
> ew 
> ork.BackgroundLocalFileSettings/setting[\[]@name='DatabaseServer'[\]]"
>
> VerifyPath="/configuration/applicationSettings/Microsoft.Lexicon.Frame
> wo 
> rk.BackgroundLocalFileSettings/setting[\[]@name='DatabaseServer'[\]]"
>
> File="[MyModuleDirectory]$(var.StorageAgentWindowsService.TargetFileNa
> me
> ).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
>
------------------------------------------------------------------------------
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

Reply via email to