[WiX-users] Change content of the config file based on [ComputerName]

2013-05-03 Thread chennam
Hi,

I want to change the content of the config file based on the machine
(SPECHW01,SPECHW02..) the MSI gets deployed.Below is the  content of the
file and node Param I want to change.

 scheduling
  
  agent
http://web.service/keepalive.aspx
LogActivitytrue/LogActivity
  /agent
 /scheduling


if the file is getting deployed on machine SPECHW01  then change the
content of file web.config. Below is the node Param I want to change to.

 scheduling
  
  agent
http://web1.service/keepalive.aspx
LogActivitytrue/LogActivity
  /agent
 /scheduling

if the MSI is deployed on machine SPECHW02 the content of Web.config needs
to be changed as below for node param.

 scheduling
  
  agent
http://web2.service/keepalive.aspx
LogActivitytrue/LogActivity
  /agent
 /scheduling

Below is the component where I need to make it work. and component need to
verify the machine it gets installed and change the contents of the file.

Component Id=cmp5F6F9B35A372943520CC8D5ABDE2F507
Directory=dirCFCE6D07D3330FE628276777F0488B18
Guid={3AFB6DE8-D43E-4EC3-BC10-251EABFE3DD0}
File Id=fil24F01DF9AB46C9205A3E021D5E98A3CF KeyPath=yes
Source=$(var.Direct.B2CWeb.ProjectDir)Web.config 
/File
  Condition /Condition
/Component



Thanks in Advance

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-tp7585604.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


Re: [WiX-users] Change content of the config file based on [ComputerName]

2013-05-03 Thread Hoover, Jacob
Hmm,
  I think I would have one config file and conditionally modify it with CA's 
like XmlFile/XmlConfig.  I'd also try to eliminate the machine name dependency 
and instead use a dev/test/live burn bundle passing a parameter via a 
MsiProperty to the installer.

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

Hi,

I want to change the content of the config file based on the machine
(SPECHW01,SPECHW02..) the MSI gets deployed.Below is the  content of the file 
and node Param I want to change.

 scheduling
  
  agent
http://web.service/keepalive.aspx
LogActivitytrue/LogActivity
  /agent
 /scheduling


if the file is getting deployed on machine SPECHW01  then change the content 
of file web.config. Below is the node Param I want to change to.

 scheduling
  
  agent
http://web1.service/keepalive.aspx
LogActivitytrue/LogActivity
  /agent
 /scheduling

if the MSI is deployed on machine SPECHW02 the content of Web.config needs to 
be changed as below for node param.

 scheduling
  
  agent
http://web2.service/keepalive.aspx
LogActivitytrue/LogActivity
  /agent
 /scheduling

Below is the component where I need to make it work. and component need to 
verify the machine it gets installed and change the contents of the file.

Component Id=cmp5F6F9B35A372943520CC8D5ABDE2F507
Directory=dirCFCE6D07D3330FE628276777F0488B18
Guid={3AFB6DE8-D43E-4EC3-BC10-251EABFE3DD0}
File Id=fil24F01DF9AB46C9205A3E021D5E98A3CF KeyPath=yes
Source=$(var.Direct.B2CWeb.ProjectDir)Web.config 
/File
  Condition /Condition
/Component



Thanks in Advance

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-tp7585604.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


Re: [WiX-users] Change content of the config file based on [ComputerName]

2013-05-03 Thread chennam
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
LogActivitytrue/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


Re: [WiX-users] Change content of the config file based on [ComputerName]

2013-05-03 Thread Hoover, Jacob
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
LogActivitytrue/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