[wix-users] harvesting two folders for the same Wix project - duplicate id issue

Rob Mensching rob at firegiant.com
Sun Apr 25 18:25:19 PDT 2021


Mutually exclusive Component/Conditions?

- - - - - - - - - - - - - - -
I provide short answers on wix-users. Full commercial support is offered by FireGiant at http://www.firegiant.com/services

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Vilius Šumskas via wix-users
Sent: Sunday, April 25, 2021 2:24 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Vilius Šumskas <v.sumskas at advantes.tech>
Subject: Re: [wix-users] harvesting two folders for the same Wix project - duplicate id issue

Hoping to resolve duplicate ID error I Just tried to harvest parent folder containing jre-32 and jre-64 versions, then use XSLT to change destination path to the same folder. Unfortunately, I get hard error instead of a warning:

JRE.wxs(423,0): error LGHT0369: Component/@Id='cmp420D7A1AC27DB0092DC05B336871FBCF' has a @Guid value '{90360289-81C4-51B3-BD9A-8E295C6FF15C}' that duplicates another component in this package. It is recommended to give each component its own unique GUID.

Sample code:
        <DirectoryRef Id="INSTALLFOLDER">
            <Directory Id="dirE9BAFA84915768DAF64DD037BAAEA38F" Name="jre">
                <Component Id="cmp1AB11EA02748CB097BF9CE18854DD232" Guid="*">
                    <File Id="fil29B9784BB5DBC85B9378E978EF516E9B" KeyPath="yes" Source="$(var.JreSourceDir)\jre-32\ASSEMBLY_EXCEPTION" />
                </Component>
            <Directory>
            <Directory Id="dir87602034B74EB26BF6108A6A12EAA6BD" Name="jre">
                <Component Id="cmp420D7A1AC27DB0092DC05B336871FBCF" Guid="*" Win64="yes">
                    <File Id="fil5771CEE52BB24E375D23B6A9AB40121F" KeyPath="yes" Source="$(var.JreSourceDir)\jre-64\ASSEMBLY_EXCEPTION" />
                </Component>
             </Directory>
         </DirectoryRef>

Any ways to workaround this?

-- 
   Vilius


More information about the wix-users mailing list