Thank you for the explanation. Rebuilding with nested ProgIds now... :D Edwin G. Castro Software Developer - Staff Electronic Banking Services Fiserv Office: 503-746-0643 Fax: 503-617-0291 www.fiserv.com Please consider the environment before printing this e-mail
> -----Original Message----- > From: Rob Mensching [mailto:r...@wixtoolset.org] > Sent: Monday, June 08, 2009 10:30 PM > To: General discussion for Windows Installer XML toolset. > Subject: Re: [WiX-users] Candle Generates Duplicate Primary Keys for > Registry Table > > Yes, it is a known bug. Heat doesn't correctly handle the version > independent ProgIds. Read the WiX.chm about ProgId and you'll see the > fix necessary (nest the ProgIds correctly). > > Castro, Edwin G. Castro (Hillsboro) wrote: > > I used heat.exe to generate a *.wxs file with content similar to the > following: > > > > <?xml version="1.0" encoding="utf-8"?> > > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > > <Fragment> > > <ComponentGroup Id="CompGroup"> > > <ComponentRef Id="cmpBFB88FD66E534758BE01AC0742FDB4E0"/> > > </ComponentGroup> > > </Fragment> > > <Fragment> > > <DirectoryRef Id="APPDIR"> > > <Component Id="cmpBFB88FD66E534758BE01AC0742FDB4E0" Guid="*"> > > <File Id="filA4B960B6E3B540F08A7655F1DF889D16" KeyPath="yes" > Source="C:\TEMP\Sample.txt"> > > <Class Id="{B32CC098-32A2-480F-9276-AB5CEB1F87F2}" > Context="InprocServer32" Description="Interface Class" > ThreadingModel="both"> > > <ProgId Id="Sample.Interface" Description="Interface > Class" /> > > <ProgId Id="Sample.Interface.1" Description="Interface > Class" /> > > </Class> > > <TypeLib Id="{D4835EDD-9AE9-4451-B550-FD9B64854DA1}" > Description="Sample 1.0 Type Library" HelpDirectory="APPDIR" > Language="0" MajorVersion="1" MinorVersion="0" /> > > </File> > > <RegistryValue Root="HKCR" Key="Interface" Value="" > Type="string" Action="write" /> > > </Component> > > </DirectoryRef> > > </Fragment> > > </Wix> > > > > Candle compiles this just fine but when I try to link I get the > following error: > > > > The primary key ' reg7CCD42352D83AF884895ECECFC666F57' is duplicated > in table 'Registry'. Please remove one of the entries or rename a part > of the primary key to avoid the collision. > > > > Here's the relevant sections from the *.wixobj file: > > > > <row > sourceLineNumber="C:\temp\DuplicateRegistryPrimaryKey.wxs*13"> > > <field>reg7CCD42352D83AF884895ECECFC666F57</field> > > <field>0</field> > > <field>CLSID\{B32CC098-32A2-480F-9276- > AB5CEB1F87F2}\ProgID</field> > > <field /> > > <field>Sample.Interface</field> > > <field>cmpBFB88FD66E534758BE01AC0742FDB4E0</field> > > </row> > > > > <row > sourceLineNumber="C:\temp\DuplicateRegistryPrimaryKey.wxs*14"> > > <field>reg7CCD42352D83AF884895ECECFC666F57</field> > > <field>0</field> > > <field>CLSID\{B32CC098-32A2-480F-9276- > AB5CEB1F87F2}\ProgID</field> > > <field /> > > <field>Sample.Interface.1</field> > > <field>cmpBFB88FD66E534758BE01AC0742FDB4E0</field> > > </row> > > > > Those refer to the <ProgId/> elements in the *.wxs file. > > > > My gut says that candle is having trouble generating unique keys for > the <ProgId/> elements but I can't figure out why. I'm afraid I'm in > over my head at this point. Is this a bug? Could somebody more > knowledgeable explain what is going on? > > > > Edwin G. Castro > > Software Developer - Staff > > Electronic Banking Services > > Fiserv > > Office: 503-746-0643 > > Fax: 503-617-0291 > > www.fiserv.com<http://www.fiserv.com/> > > P Please consider the environment before printing this e-mail > > > > --------------------------------------------------------------------- > --------- > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensing option that enables unlimited > > royalty-free distribution of the report engine for externally facing > > server and web deployment. > > http://p.sf.net/sfu/businessobjects > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ----------------------------------------------------------------------- > ------- > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users