I have additional question. As I've specified in one of my previous posts, we have two versions of our product (Desktop and Enterprise). Both versions can be installed on the same computer on the same time but in __different folders__. There is a set of files that should be included to both installations, and I don't want to make it shared. Is it allowed to write something like this:
<?if $(var.DesktopType) = "_DESKTOP"?> <?define ProductName="Desktop Product" ?> <?define ProductCode="7D2FCEFA-589C-455c-B46A-AE0C8A063319"?> <?define UpgradeCode="5C97CED3-EEC9-40c7-9D8C-215FFCE9EBB6"?> <?else?> <?define ProductName="Enterprise Product" ?> <?define ProductCode="B7D88ED8-525C-48b7-9180-CB08F8A033E6"?> <?define UpgradeCode="CE86E2A8-8B96-4543-804E-4D3C3C3D2C45"?> <?endif?> .... <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> <Product Id="$(var.ProductCode)" Name="$(var.ProductName)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="$(var.UpgradeCode)"> .. <DirectoryRef Id="PFAPPLICATIONROOTDIRECTORY"> <Component Id="ComponentCoreBaseLibrary" Guid="B7D378C2-1BA3-4e89-9CC4-265C7F5D9B8F"> <CreateFolder/> <File Id="ProductApi.dll" Name="ProductApi.dll" Source="..\Bin\ProductApi.dll" /> <File Id="ProductBl.dll" Name="ProductBl.dll" Source="..\Bin\ProductBl.dll" /> .... So, after the build with different var.DesktopType value I will receive two MSI with different Product / Upgrade codes. But each of this MSIs will contain component with same GUID. Is it OK? Is it allowed to have components with same GUID across products with different Product / Upgrade codes? Does installer recognize component by Product / Upgrade Code GUID + Component GUID combination? I know that it will be better to generate new GUIDs for components in different products, but it is a little difficult to generate different GUIDs for each component. Thanks. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users