I'm using VS2010, WiX version 3.6.1112.0.

The following snippet of code is used to generate a 1-n # of components, based 
upon value of EnvironmentList variable.  It works ok with 1 entry in 
EnvironmentList.  However when EnvironmentList contains 2 or more entries I get 
an ICE08 error on the component  stating that it has a duplicate GUID.  It 
seems that the Guid="*" is not creating a new GUID on each iteration of the 
foreach loop by the preprocessor.   In this scenario, how can I generate a 
unique GUID for use within a foreach loop?

<?foreach ENVIRONMENT in $(var.ENVIRONMENTList)?>

<Component Id="InstallConfig.$(var.ENVIRONMENT)" Guid="*">

<Condition><![CDATA[USENVIRONMENTCONFIGFILE = "yes" AND 
PROP.INSTALL.ENVIRONMENT = "$(var.ENVIRONMENT)"]]></Condition>

<File Id='file.config.$(var.ENVIRONMENT)'

Name='web.config'

Source="$(var.SourceDir)web.config.$(var.ENVIRONMENT)"

DiskId='1'/>

</Component >

<?endforeach?>



Thanks, Bob
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to