I have a section in my configuration file that looks like: 

 

      <baseAddresses> 

            <add baseAddress="http://COMPUTER:8007/Services"/> 

            <add baseAddress="net.tcp://COMPUTER:8009/Services"/> 

      </baseAddresses> 

 

I would like to replace COMPUTER with the name of the machine on which the 

installation is taking place. I have an XmlFile directive that looks like: 

 

 

<XmlFile Id="ConsoleAppConfig1" File="[CONSOLEINSTALLDIR]app.Config" 

Action="setValue" Name="baseAddress" 

Value="http:/ <http://> /[FULLYQUALIFIEDCOMPUTERNAME]:8003/Services/"
ElementPath="//system

.serviceModel/services/service/host/baseAddresses/[EMAIL PROTECTED]" 

Sequence="1"/> 

 

As can be seen this only replaces the first element (and incorrectly I might


add). Since there are two nodes I think I need something like StartsWith to 

select the node and use to XmlFile directives. There is an XPath string
function 

starts-with but that seems to be designed for use with XSLT and not here.
Any 

idea of how I can replace COMPUTER as out lined using XmlFile? 

 

Thank you. 

 

Kevin 

 

 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to