Thanks very much for the help everyone,

 

Rob you were right I think that something was being referenced twice.  I'm
not sure if I managed to do it (not sure if you can when VS is calling the
WiX libs for you?) or if it was VS playing funny buggers.

Either way, I de-referenced the project and closed VS and then re-added
(with possibly some other mucking around in between) but I think this is
what fixed it.

 

Cheers

 

---

 

Re: [WiX-users] Use of ComponentGroup and "Duplicate symbol
'WixComponentGroup:xxx' found."

From: Nic Barden <[EMAIL PROTECTED]> - 2008-10-15 15:00

 

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 

 

 

 

 

 

 Re: [WiX-users] Use of ComponentGroup and "Duplicate symbol
'WixComponentGroup:xxx' found."

From: Eitan Behar <[EMAIL PROTECTED]> - 2008-10-15 15:43

 

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

> [EMAIL PROTECTED]

> https://lists.sourceforge.net/lists/listinfo/wix-users

> 

 

 

 

 

 

 Re: [WiX-users] Use of ComponentGroup and "Duplicate symbol
'WixComponentGroup:xxx' found."

From: Rob Mensching <[EMAIL PROTECTED]> - 2008-10-15 16:07

 

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

> [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

[EMAIL PROTECTED]

https://lists.sourceforge.net/lists/listinfo/wix-users 

 

 

 

 

 

 Re: [WiX-users] Use of ComponentGroup and "Duplicate symbol
'WixComponentGroup:xxx' found."

From: John Hall <[EMAIL PROTECTED]> - 2008-10-15 16:27

 

> > > <ComponentRef Id=" component2" />

> > > <DirectoryRef Id=" APPLICATIONROOTDIRECTORY ">

> > > <ComponentGroupRef Id=" Project1Files " />

 

> 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.

 

In many places there appear to be spaces inside the Id attributes - could
this be confusing things?

 

Regards,

John 

 

 

 

-------------------------------------------------------------------------
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

Reply via email to