The better option is to have one Web.config file and 6 other components 
(containing the XmlFile elements) with conditions on them for writing the 
appropriate values.

Not that I like the idea, but you could have 6 Components with a Web.config in 
each and a Condition element for each component based on the machine name 
http://msdn.microsoft.com/en-us/library/windows/desktop/aa368009(v=vs.85).aspx.


-----Original Message-----
From: chennam [mailto:chatrapathi.chen...@gmail.com] 
Sent: Friday, May 03, 2013 1:54 PM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Change content of the config file based on 
[ComputerName]

The Issue I am working on is for Production environment where content of 
Web.config is different for 5 machines  at below node.

 <scheduling> 
      <agent> 
        http://web.service/keepalive.aspx
        <LogActivity>true</LogActivity> 
      </agent>
 </scheduling> 

For other environments we have only one web.config for each. But we have 5 
different for PROD. And I don't want to place all 5 on all the machines ,So 
that was the reason I want to modify the node based on the conditions during 
Installation .Condition can be "Environment" and "ComputerName".

I was looking for some thing how to write "CA's like XmlFile/XmlConfig"
where having more than one condition to satisfy.Please point out me good source.

Thanks
Chatra



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Change-content-of-the-config-file-based-on-ComputerName-tp7585604p7585622.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free 
troubleshooting tool designed for production Get down to code-level detail for 
bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to