Still kind of stuck.  I was able to generate the exact xml as Brian did. 
Candle compiled fine, but light is complaining.  I'm trying to generate a
merge module out of it.  Getting this error:

     [exec] D:\Builds\PRISM XP\Build 11.51.0000\Bin\PrismShell.wxs(18) :
error LGHT0130 : The primary key 'reg0387C011F3
F8A22BDFC14B72466D9C9A.C7AC8538_65ED_4C2B_AE16_6291871D0918' is duplicated
in table 'Registry'.  Please remove one of the entries or rename a part of
the primary key to avoid the collision.

D:\Builds\PRISM XP\Build 11.51.0000\Bin>candle -v PrismShell.wxs
Microsoft (R) Windows Installer Xml Compiler version 3.0.5217.0
Copyright (C) Microsoft Corporation. All rights reserved.

PrismShell.wxs

D:\Builds\PRISM XP\Build 11.51.0000\Bin>light -v PrismShell.wixobj
Microsoft (R) Windows Installer Xml Linker version 3.0.5217.0
Copyright (C) Microsoft Corporation. All rights reserved.

Updating file information.
Creating cabinet files.
Creating cabinet
'C:\Users\roy\AppData\Local\Temp\jyewbz0r\#MergeModule.CABinet'.
Generating database.
D:\Builds\PRISM XP\Build 11.51.0000\Bin\PrismShell.wxs(18) : error LGHT0130
: The primary key 'reg0387C011F3F8A22BDFC14B
72466D9C9A.C7AC8538_65ED_4C2B_AE16_6291871D0918' is duplicated in table
'Registry'.  Please remove one of the entries or
 rename a part of the primary key to avoid the collision.

My merge module looks like this:

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns:wi="http://schemas.microsoft.com/wix/2006/wi";
xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <Module Id="PrismShell" Language="1033" Version="1.0.0.0">
    <Package Id="C7AC8538-65ED-4C2B-AE16-6291871D0918" Description="PRISM
Shell Module" Comments="PRISM Shell Merge Module" Manufacturer="House of
Commons" InstallerVersion="300">
    </Package>
    <Icon Id="PRISM.ICO" SourceFile="PRISM.exe">
    </Icon>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="ProgramFilesFolder" Name="Program Files">
        <Directory Id="HOCDir" Name="House Of Commons">
          <Directory Id="INSTALLLOCATION" Name="PRISM Shell">
                        <Component Id="DisplayFridayListUI.dll"
Guid="{77B6CDD1-B9C6-4497-B7F5-242B9783D6A3}">
                                <File Id="DisplayFridayListUI.dll" KeyPath="yes"
Source="SourceDir\DisplayFridayListUI.dll">
                                        <TypeLib 
Id="{3515D627-3FA0-490F-9330-02A73023E0C0}"
Description="DisplayFridayListUI" HelpDirectory="TARGETDIR" Language="0"
MajorVersion="1" MinorVersion="0">
                                                <Class 
Id="{9AF8DE3E-3FFB-4F1C-AA59-3DBAB1725BB9}"
Context="InprocServer32"
Description="DisplayFridayListUI.CDisplayFridayList"
ThreadingModel="apartment" Version="1.0" Programmable="yes">
                                                        <ProgId 
Id="DisplayFridayListUI.CDisplayFridayList"
Description="DisplayFridayListUI.CDisplayFridayList" />
                                                </Class>
                                                <Interface 
Id="{2D3FD2B6-AF78-4DFD-A5C9-7CE97BC4A594}"
Name="CDisplayFridayList"
ProxyStubClassId="{00020424-0000-0000-C000-000000000046}"
ProxyStubClassId32="{00020424-0000-0000-C000-000000000046}" />
                                        </TypeLib>
                                </File>
                                <RegistryValue Root="HKCR"
Key="CLSID\{9AF8DE3E-3FFB-4F1C-AA59-3DBAB1725BB9}\Implemented
Categories\{40FC6ED5-2438-11CF-A3DB-080036F12502}" Value="" Type="string"
Action="write" />
                                <RegistryValue Root="HKCR"
Key="Interface\{2D3FD2B6-AF78-4DFD-A5C9-7CE97BC4A594}\ProxyStubClsid"
Value="{00020424-0000-0000-C000-000000000046}" Type="string" Action="write"
/>
                                <RegistryValue Root="HKCR"
Key="Interface\{2D3FD2B6-AF78-4DFD-A5C9-7CE97BC4A594}\ProxyStubClsid32"
Value="{00020424-0000-0000-C000-000000000046}" Type="string" Action="write"
/>
                                <RegistryValue Root="HKCR"
Key="Interface\{2D3FD2B6-AF78-4DFD-A5C9-7CE97BC4A594}"
Value="_CDisplayFridayList" Type="string" Action="write" />
                        </Component>
            
          </Directory>
        </Directory>
      </Directory>
      <Directory Id="ProgramMenuFolder" Name="Programs">
        <Directory Id="ProgramMenuDir" Name="PRISM">
        </Directory>
      </Directory>
      <Directory Id="DesktopFolder" SourceName="Desktop">
      </Directory>
    </Directory>
  </Module>
</Wix>

I then decided to simply remove the following in order to create my merge
module:

<Interface Id="{2D3FD2B6-AF78-4DFD-A5C9-7CE97BC4A594}"
Name="CDisplayFridayList"
ProxyStubClassId="{00020424-0000-0000-C000-000000000046}"
ProxyStubClassId32="{00020424-0000-0000-C000-000000000046}" />

I then check my cleanup XSLT which I used to use to clean up the messy vb6
output, and realized that I used to remove any element with the following
attribute:

000204EF-0000-0000-C000-000000000046

compare that to:

00020424-0000-0000-C000-000000000046

Which is slightly off.  Me thinks I should also add this to the cleanup xslt
file.

You can copy paste it and try it out.  I'm a bit stuck.  Perhaps I've been
staring at this for too long.

Roy



Roy Abou Assaly wrote:
> 
> Both of you are correct.  I have an XSLT that massage the XML that heat
> generates in order to ensure certain shortcuts are added and changes a few
> other things as well.  In the process, the XSLT is not doing its job.  I
> would cancel the bug as it looks like like it's a data issue on my end.
> 
> Sorry for the trouble.
> 
> On Thu, Apr 23, 2009 at 5:39 PM, Neil Sleightholm (via Nabble) <
> ml-user+58265-122838...@n2.nabble.com<ml-user%2b58265-122838...@n2.nabble.com>
>> wrote:
> 
>> Running heat and candle against the file you attached to the bug doesn't
>> generate the error you reported could you give more details of the
>> command lines you are using?
>>
>> Neil
>>
>> -----Original Message-----
>> From: Roy Abou Assaly
>> [mailto:royass...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2686897&i=0>]
>>
>> Sent: 23 April 2009 22:18
>> To:
>> wix-us...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2686897&i=1>
>> Subject: Re: [WiX-users] Heat 3.0.4923 vs 3.0.5217 vb6 dll output
>>
>>
>>
>> Hi Brian,
>>
>> The bug is:
>> https://sourceforge.net/tracker/?func=detail&aid=2779893&group_id=105970
>> &atid=642714
>> I've attached a DLL you can use to test with in case you don't have one
>> to
>> reproduce the issue.
>>
>> Thanks!
>>
>> Roy
>>
>>
>> Brian Rogers wrote:
>> >
>> > Hey Roy,
>> >
>> > Please file a bug.
>> >
>> > Thanks,
>> >
>> > Brian Rogers
>> > "Intelligence removes complexity." - Me
>> > http://icumove.spaces.live.com
>> >
>> >
>> > On Thu, Apr 23, 2009 at 1:31 PM, Roy Abou Assaly
>> >
>> <royass...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2686897&i=2>>wrote:
>>
>> >
>> >>
>> >> Hi,
>> >>
>> >> In 3.0.4923, I used to get the following output (note how the
>> Interface
>> >> element is *outside* of the File element):
>> >>
>> >>            <Component Id="DisplayFridayListUI.dll"
>> >> Guid="{C4773BDF-6383-423D-BB34-BBB961BFD6DF}">
>> >>              <File Id="DisplayFridayListUI.dll"
>> >> Name="DisplayFridayListUI.dll" KeyPath="yes" Source="D:\Builds\PRISM
>> >> XP\Build 11.50.0000\Bin\PRISMMsi\DisplayFridayListUI.dll">
>> >>                <Class Id="{9AF8DE3E-3FFB-4F1C-AA59-3DBAB1725BB9}"
>> >> Context="InprocServer32"
>> >> Description="DisplayFridayListUI.CDisplayFridayList"
>> >> Server="DisplayFridayListUI.dll" ThreadingModel="apartment"
>> >> Version="1.0">
>> >>                  <ProgId Id="DisplayFridayListUI.CDisplayFridayList"
>> >> Description="DisplayFridayListUI.CDisplayFridayList">
>> >>                  </ProgId>
>> >>                </Class>
>> >>              </File>
>> >>              <Interface Id="{2D3FD2B6-AF78-4DFD-A5C9-7CE97BC4A594}"
>> >> Name="CDisplayFridayList"
>> >> ProxyStubClassId="{00020424-0000-0000-C000-000000000046}"
>> >> ProxyStubClassId32="{00020424-0000-0000-C000-000000000046}">
>> >>              </Interface>
>> >>
>> >>
>> >> In 3.0.5217, the heat output is (note how the Interface element is
>> >> *inside*
>> >> the File element):
>> >>
>> >>                <Component Id="cmp40C4F6ADC9C48FEFA7144101F481848A"
>> >> Guid="{00C04661-3A43-4FD9-B484-0B27EF2BF049}">
>> >>                    <Class Id="{D5DE8D20-5BB8-11D1-A1E3-00A0C90F2731}"
>> >> Context="InprocServer32" Description="VBPropertyBag"
>> >> ThreadingModel="apartment" ForeignServer="msvbvm60.dll" />
>> >>                    <File Id="filA79D608464525B697087B7D7200AF704"
>> >> KeyPath="yes" Source="SourceDir\DisplayFridayListUI.dll">
>> >>                        <TypeLib
>> >> Id="{3515D627-3FA0-490F-9330-02A73023E0C0}"
>> >> Description="DisplayFridayListUI"
>> >> HelpDirectory="dir667CD14ED201BFF0942A99F02E55F065" Language="0"
>> >> MajorVersion="1" MinorVersion="0">
>> >>                            <Class
>> >> Id="{9AF8DE3E-3FFB-4F1C-AA59-3DBAB1725BB9}" Context="InprocServer32"
>> >> Description="DisplayFridayListUI.CDisplayFridayList"
>> >> ThreadingModel="apartment" Version="1.0" Programmable="yes">
>> >>                                <ProgId
>> >> Id="DisplayFridayListUI.CDisplayFridayList"
>> >> Description="DisplayFridayListUI.CDisplayFridayList" />
>> >>                            </Class>
>> >>                            <Interface
>> >> Id="{2D3FD2B6-AF78-4DFD-A5C9-7CE97BC4A594}" Name="CDisplayFridayList"
>> >> ProxyStubClassId="{00020424-0000-0000-C000-000000000046}"
>> >> ProxyStubClassId32="{00020424-0000-0000-C000-000000000046}" />
>> >>                        </TypeLib>
>> >>                    </File>
>> >>
>> >> Using the -svb6 doesn't change anything.  When using Candle to
>> compile, I
>> >> get the following error:
>> >>
>> >> error CNDL0005 : The File element contains an unexpected child
>> element
>> >> 'Interface'.
>> >>
>> >> This wasn't the case before.  Should I file a bug?  I'm sure you're
>> >> starting
>> >> to hate my constant emails regarding vb6 and heat :)
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> View this message in context:
>> >>
>> http://n2.nabble.com/Heat-3.0.4923-vs-3.0.5217-vb6-dll-output-tp2686239p
>> 2686239.html
>> >> Sent from the wix-users mailing list archive at Nabble.com.
>> >>
>> >>
>> >>
>> >>
>> ------------------------------------------------------------------------
>> ------
>> >> Crystal Reports - New Free Runtime and 30 Day Trial
>> >> Check out the new simplified licensign 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-us...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2686897&i=3>
>> >> https://lists.sourceforge.net/lists/listinfo/wix-users
>> >>
>> >
>> ------------------------------------------------------------------------
>> ------
>> > Crystal Reports - New Free Runtime and 30 Day Trial
>> > Check out the new simplified licensign 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-us...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2686897&i=4>
>> > https://lists.sourceforge.net/lists/listinfo/wix-users
>> >
>> >
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Heat-3.0.4923-vs-3.0.5217-vb6-dll-output-tp2686239p
>> 2686605.html
>> Sent from the wix-users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------
>> ------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensign 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-us...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2686897&i=5>
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>> ------------------------------------------------------------------------------
>>
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensign 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-us...@...<http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2686897&i=6>
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>> ------------------------------
>>  This email is a reply to your post @
>> http://n2.nabble.com/Heat-3.0.4923-vs-3.0.5217-vb6-dll-output-tp2686239p2686897.html
>> You can reply by email or by visting the link above.
>>
>>
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/Heat-3.0.4923-vs-3.0.5217-vb6-dll-output-tp2686239p2688036.html
Sent from the wix-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Crystal Reports &#45; New Free Runtime and 30 Day Trial
Check out the new simplified licensign option that enables unlimited
royalty&#45;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

Reply via email to