I have just been given a task to update one of our apps .config file and so I
tried what was listed in this topic but I am getting the following error:

Failed to find node:
//configuration/appSettings/add[@key='ServiceInfo'] in XML file: C:\Program
Files (x86)\CompanyName\Product\Product.exe.config, system error:
-2147020584


Here is my code:
<Component Id="EditConfigFile" Guid="" KeyPath="yes">
        <util:XmlConfig Id="SetServiceInfo" Action="create" Node="value"
Name="ServiceInfo"
                               
ElementPath="//configuration/appSettings/add[\[]@key='ServiceInfo'[\]]"
                               
VerifyPath="//configuration/appSettings/add[\[]@key='ServiceInfo'[\]]"
                                Sequence="10"
File="[INSTALLDIR]RemoteInk.exe.config" On="install"
                                Value="[LYNC_SERVER_ADDRESS]" />
</Component>

Here is what the .config file is supposed to look like after being updated:
<configuration>
  ...
  <appSettings>
    ...
    <add key="ServiceInfo" value=LYNC_SERVER_ADDRESS />
</configuration>

So what do I have wrong in the util:XmlConfig element that is causing this
error and what changes do I need to make to get this working?

Thanks for any help.




--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Updating-app-config-tp1077780p7594702.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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to