Hey Norman, You would need to do something like this. XmlFile won't read that value and expand your property. It will blindly replace the entire value.
<util:XmlFile Id="ChildAttribute3" File="[#web.config]" ElementPath="/applicationSettings/zTestWebSite.Properties.Settings/setting[...@name='zTestWebSite_localhost_Service'[\]]/value Name="Long" Value="http://[SERVERNAME]/NormsTestWebService/Service.asmx" Action="setValue" /> Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Mon, Feb 16, 2009 at 1:30 AM, Lough, Norman <norman.lo...@imass.co.uk>wrote: > I have a web.config with the following > > > > <applicationSettings> > > <zTestWebSite.Properties.Settings> > > <setting name="zTestWebSite_localhost_Service" > serializeAs="String"> > > > <value>http://[SERVERNAME]/NormsTestWebService/Service.asmx</value> > > </setting> > > </zTestWebSite.Properties.Settings> > > </applicationSettings> > > > > I want to use <XmlFile> to modify the value > http://[SERVERNAME]/NormsTestWebService/Service.asmx > > I have a property WEBSERVICESERVER which will say something like > localhost or whatever to replace [SERVERNAME] in the config file. Can > anyone help me as to how I would set the correct element path? > > Norman Lough > > Developer > > Tel: +44 (0)191 213 5555 > > DDI: +44 (0)191 2028360 > > Email: norman.lo...@imass.co.uk > > Imass Ltd, Northumbria House, Regent Centre, Gosforth, Newcastle upon > Tyne, NE3 3PX. http://www.imass.co.uk <http://www.imass.co.uk/> > > > > Imass Limited is an Infoterra company, part of EADS Astrium > > > > > > Registered in England and Wales No. 2379476 > > > > - Disclaimer - > The information contained in this e-mail and its attachments is > confidential and intended only for the use of the individual or entity > named above. If you are not the intended recipient, please do not read, > copy, use or disclose this message or its attachments. If you have > received this message in error, please notify the sender immediately and > delete or destroy all copies of this message and attachments in all > media. Any views expressed in this e-mail that do not relate to Imass' > official business may not reflect the views of the company. > > > > > ------------------------------------------------------------------------------ > Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, > CA > -OSBC tackles the biggest issue in open source: Open Sourcing the > Enterprise > -Strategies to boost innovation and cut costs with open source > participation > -Receive a $600 discount off the registration fee with the source code: > SFAD > http://p.sf.net/sfu/XcvMzF8H > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users