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 yells at me because the Class/@Server attribute is missing. I get
around that by  either making Class a child of the File element, or
specifying that Server="ComTest.TestThing.dll" in the Class element.
Easy enough.

 

The problem I'm having difficulty getting past is that when I try to
light this, I get a message like this:

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.

 

The error is returned on the line containing the Class element.

 

Thanks.

 

-------------------------------------------------------------------------
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-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to