From the Example I gave Earlier:
<XmlFile Id="ModifyServiceLocation" Action="setValue"
ElementPath="/configuration/appSettings/add[@key='ServiceLocation']/@value"
File="[INSTALLLOCATION]\sample.config" Value="[SERVICELOCATION]"/>
Which outputs:
--sample.config--
<configuration>
<appSettings>
<add key="ServiceLocation" value="ABCDEFG"/>
</appSettings>
</configuration>
As John alluded to, keeping track of strings is easier if you give the
file sample.config an ID and refer to the Id.
> -----Original Message-----
> From: TimM [mailto:[email protected]]
> Sent: Tuesday, May 13, 2014 3:47 PM
> To: [email protected]
> Subject: Re: [WiX-users] Which is best to use in my case: XmlFile or
> XmlConfig?
>
> Thanks John, I made that change and the build worked but when I ran
> the install to test it I get the following error:
>
> Failed to find node:
> //configuration/appSettings/add[@key='ServiceInfo']/@value in XML file:
> C:\Program Files (x86)\CompanyName\Product\Product.exe.config, system error:
> -2147020584
>
> My updated element looks like this:
> <util:XmlFile Id="SetServiceInfo" Action="setValue"
> ElementPath="//configuration/appSettings/add[\[]@key='ServiceInfo'[\]]/@value"
> Value="[LYNC_SERVER_ADDRESS]" File="[INSTALLDIR]RemoteInk.exe.config"
> Sequence="5" />
>
> So what is this error and what else do I need to do to get this to work?
> Thanks...
>
>
>
>
>
>
> --
> View this message in context:
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Which-is-best-to-use-in-my-case-XmlFile-or-XmlConfig-tp7594691p7594707.html
> Sent from the wix-users mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For
> FREE Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available Simple to use. Nothing to install. Get started now for
> free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
> NOTICE: This electronic mail message and any files transmitted with
> it are intended
> exclusively for the individual or entity to which it is addressed.
> The message,
> together with any attachment, may contain confidential and/or
> privileged information.
> Any unauthorized review, use, printing, saving, copying, disclosure
> or distribution
> is strictly prohibited. If you have received this message in error, please
> immediately advise the sender by reply email and delete all copies.
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform
> available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users