Hi I am Bit struck on setting the condition on component.

<Component Id="cmp39F4D3AA1248B5FE5EB2F92D189B27E1"
Directory="dirCFCE6D07D3330FE628276777F0488B18"
Guid="{56788F77-A729-47CE-BBA4-9D7D7F175536}">
                <File Id="fil10B3B7732D0DDBD4AA773E0B7F34D092" KeyPath="yes"
Source="$(var.SCBUDirect.B2CWeb.ProjectDir)Web.ProdBuild.Web1.config.xml" >
<CopyFile Id="SCopy_ConfigPROD1"
DestinationProperty="DestFilesWebsiteFolder" DestinationName="Web.config" />
                </File>
              <Condition> </Condition>
            </Component>

The Above component works fine the ENVPROPERTY is set through command line.

But When I change the above statement as below doesn't work where the
Installer need to detect the computername or Servername where it gets
installed and based on that the installer must make sure to deploy the above
component or not.


<Component Id="cmp39F4D3AA1248B5FE5EB2F92D189B27E1"
Directory="dirCFCE6D07D3330FE628276777F0488B18"
Guid="{56788F77-A729-47CE-BBA4-9D7D7F175536}">
                <File Id="fil10B3B7732D0DDBD4AA773E0B7F34D092" KeyPath="yes"
Source="$(var.SCBUDirect.B2CWeb.ProjectDir)Web.ProdBuild.Web1.config.xml" >
<CopyFile Id="SCopy_ConfigPROD1"
DestinationProperty="DestFilesWebsiteFolder" DestinationName="Web.config" />
                </File>
              <Condition> </Condition>
            </Component>

Can any one help in setting the conditional statement.

Thanks in advance



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Conditional-component-tp7585167.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to