To be explicit, it appears that you are somehow including your Fragments code twice. Maybe you lit the Fragment.wxs into a .wixlib then added both the .wixlib and the Fragment.wxs to the link line? That would create the problem.
Everything else looks fine. -----Original Message----- From: Eitan Behar [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 15, 2008 08:11 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Use of ComponentGroup and "Duplicate symbol 'WixComponentGroup:xxx' found." Just for the sake of trying...remove the lib reference, and include the fragment directly to the project... On Wed, Oct 15, 2008 at 4:54 PM, Nic Barden <[EMAIL PROTECTED]> wrote: > Hi Eitan, > > > > I am not explicitly referencing it in the wxs file, I simply have a project > reference to the wixlib file that the project that contains the fragment > generates. > > This is my understanding of how you should do this, and it will > automatically get pulled in. Is that correct? > > > > Cheers > > > > --- > > Re: [WiX-users] Use of ComponentGroup and "Duplicate symbol > 'WixComponentGroup:xxx' found." > > From: Eitan Behar <[EMAIL PROTECTED]> - 2008-10-15 14:23 > > Hi Nic, > > > > Your code looks right, how are you refering to the wix fragment? > > > > Rgrds, > > > > Eitan > > > > > > > > On Wed, Oct 15, 2008 at 3:05 PM, Nic Barden <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > > > > I am trying to wrap my <Fragment> contents inside a <ComponentGroup> like > > > this forum post says: > > > > > > > > > > > http://n2.nabble.com/Multiple-Wxs-Merge-in-Visual-Studio--td701023.html#a701 > > > 024 > > > > > > > > > > > > I am still unsure of the best design for this, but I would ideally like > the > > > main installer to be the only place where the APPLICATIONROOTDIRECTORY is > > > specified. > > > > > > So I have one wxs file with a fragment like this: > > > > > > > > > > > > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > > > > > > <Fragment> > > > > > > <ComponentGroup Id="Project1Files" > > > > > > > <ComponentRef Id="component1" /> > > > > > > <ComponentRef Id=" component2" /> > > > > > > </ComponentGroup> > > > > > > > > > > > > <DirectoryRef Id=" APPLICATIONROOTDIRECTORY "> > > > > > > <Component Id="component1" Guid="F9971885-8150-476C-86AE-EC693A59C8DF" > > > DiskId="1"> > > > > > > ... > > > > > > </Component> > > > > > > ... > > > > > > </DirectoryRef> > > > > > > </Fragment> > > > > > > </Wix> > > > > > > > > > > > > > > > > > > Then I have the main wxs file like this: > > > > > > > > > > > > <Product> > > > > > > <Directory Id="TARGETDIR" Name="SourceDir"> > > > > > > <Directory Id="ProgramFilesFolder"> > > > > > > <Directory Id="INSTALLDIR" Name="MyCompany"> > > > > > > <Directory Id="APPLICATIONROOTDIRECTORY" > > > Name="MyApplication" /> > > > > > > </Directory> > > > > > > </Directory> > > > > > > </Directory> > > > > > > > > > > > > <Feature Id="ProductFeature" Title="My Application" Level="1" > > > ConfigurableDirectory=" APPLICATIONROOTDIRECTORY "> > > > > > > <ComponentGroupRef Id=" Project1Files " /> > > > > > > </Feature> > > > > > > </Product> > > > > > > > > > > > > This results in a compilation error: "Duplicate symbol > > > 'WixComponentGroup:Project1Files' found." > > > > > > What is the issue here - have they been included due to both the > > > DirectoryRef and also the Feature? I am not sure how to bundle the > > > Components into the ComponentGroup without including them in a directory, > > > as > > > they expect a directory to be set. > > > > > > Also, should the <Directory Id="APPLICATIONROOTDIRECTORY" > > > Name="MyApplication" /> definition contain anything if all the contents > > > have > > > already been added via the Fragments? > > > > > > > > > > > > Thanks > > > > > > ------------------------------------------------------------------------- > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > > challenge > > > Build the coolest Linux based applications with Moblin SDK & win great > > > prizes > > > Grand prize is a trip for two to an Open Source event anywhere in the > world > > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > > WiX-users mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users