Okay I tried the following:
<util:XmlConfig Id="ServiceInfo" Action="create"
ElementPath="/configuration/appSettings/"
Name="ServiceInfo" Value="[LYNC_SERVER_ADDRESS]"
File="[INSTALLDIR]RemoteInk.exe.config" On="install"
Sequence="9" />
This one did nothing at all, no errors, but did not update file. So I tried
the following:
<util:XmlFile Id="ServiceInfo" Action="setValue"
ElementPath="/configuration/appSettings"
Name="ServiceInfo" Value="[LYNC_SERVER_ADDRESS]"
File="[INSTALLDIR]RemoteInk.exe.config" />
And this one did create the entry, but not how I was expecting it to be
created. Above is what I wanted/needed, but what was created with this line
is as follows:
<configuration>
...
<appSettings ServiceInfo="net.tcp://example.com:54321/RemoteInk">
</configuration>
So first it placed it on the same line as the start of the appSettings
element and 2nd it is not in the format that I wanted, which should have
been:
<add key="ServiceInfo" value=net.tcp://example.com:54321/RemoteInk />
So again has anyone created new entries in an application .config file and
if so then could you let me know what I am doing wrong or missing
altogether?
--
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-tp7594691p7594699.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