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
        <LogActivity>true</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
        <LogActivity>true</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
        <LogActivity>true</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

Reply via email to