Bugs item #1615167, was opened at 2006-12-13 12:21
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1615167&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: e__ (e__)
Assigned to: Nobody/Anonymous (nobody)
Summary: Registry rows generated by Class element are not unique

Initial Comment:
Some of the Registry rows generated by the Class element may collide with the 
RegistryValue elements, resulting in an error similar to the following:

C:\projects\sandbox\COMTest.wxs(19) : error LGHT0130 : The primary key 
'reg9D78D592D2980BC3F33101F91D853AE6' is duplicated in table 'Registry'.  
Please remove one of the entries or rename a part of the primary key to avoid 
the collision.

Steps:
I heat’ed some files, and got something like this:

<Component Id="ComTest.TestThing.dll" 
Guid="{099EEAAA-852D-44AE-94A4-12F4AD41F39B}">

        <Class Id="{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}" 
Context="InprocServer32" Description="ComTest.TestThing.JobCollection" 
ThreadingModel="both">

            <ProgId Id="ComTest.TestThing.JobCollection" 
Description="ComTest.TestThing.JobCollection" />

        </Class>

     <File Id="ComTest.TestThing.dll" Name="ComTest.TestThing.dll" 
KeyPath="yes" Source="C:\Files\ComTest.TestThing.dll" />

    <ProgId Id="Record" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32\1.2.0.0" 
Name="Class" Value="ComTest.TestThing.JobCollection" Type="string" 
Action="write" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32\1.2.0.0" 
Name="Assembly" Value="ComTest.TestThing, Version=1.2.0.0, Culture=neutral, 
PublicKeyToken=f89fe288ec1a1c9a" Type="string" Action="write" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32\1.2.0.0" 
Name="RuntimeVersion" Value="v1.1.4322" Type="string" Action="write" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32\1.2.0.0" 
Name="CodeBase" Value="[#ComTest.TestThing.dll]" Type="string" Action="write" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32" 
Value="mscoree.dll" Type="string" Action="write" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32" Name="Class" 
Value="ComTest.TestThing.JobCollection" Type="string" Action="write" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32" 
Name="Assembly" Value="ComTest.TestThing, Version=1.2.0.0, Culture=neutral, 
PublicKeyToken=f89fe288ec1a1c9a" Type="string" Action="write" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32" 
Name="RuntimeVersion" Value="v1.1.4322" Type="string" Action="write" />

    <RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32" 
Name="CodeBase" Value="[#ComTest.TestThing.dll]" Type="string" Action="write" />

</Component>

Candle, then attempt to Light gives:
Microsoft (R) Windows Installer Xml Linker version 3.0.2315.0
Copyright (C) Microsoft Corporation 2003. All rights reserved.

C:\projects\sandbox\COMTest.wxs(19) : error LGHT0130 : The primary key 
'reg9D78D592D2980BC3F33101F91D853AE6' is duplicated in table 'Registry'.  
Please remove one of the entries or rename a part of the primary key to avoid 
the collision.


Workaround:

The collision appears to occur when there is a default value for the key. 
Removing the following from the above snippit resolves the error.

<RegistryValue Root="HKCR" 
Key="CLSID\{01D6FA3C-BCF4-35AB-820A-49ACAF99F5F8}\InprocServer32" 
Value="mscoree.dll" Type="string" Action="write" />


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1615167&group_id=105970

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to