I think this bug in heat was reported before.  Until someone fixes heat, you'll 
have to delete the colliding registry key.  The collision is happening in new 
code in heat so the bug isn't completely unexpected... it was one of the last 
things Derek did before he left (and we haven't had anyone else with cycles to 
maintain heat).

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vasiliy Povalyaev
Sent: Thursday, December 21, 2006 03:44
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Setting (Default) value for registry key


Hi.

I have a problem and i hope somebody can help me.

I need to register .NET assembly for COM during installation. So i use heat to 
produce a "valid" code. Here is an example:

<Component Id="Lib.dll" Guid="PUT-GUID-HERE">
                <Class Id="{83602D89-19ED-377D-BCFA-07DEC0826D15}" 
Context="InprocServer32" Description="Lib.frmAdmin" ThreadingModel="both">
                    <ProgId Id="Lib.frmAdmin" Description="Lib.frmAdmin" />
                </Class>
                <File Id="Lib.dll" Name="AdminInquiryLib.dll" KeyPath="yes" 
Source="C:\blah\blah\blah\Lib.dll" />
                <ProgId Id="Record" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32\2.0.0.0" 
Name="Class" Value="Lib.frmAdmin" Type="string" Action="write" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32\2.0.0.0" 
Name="Assembly" Value="Lib, Version=2.0.0.0<http://2.0.0.0>, Culture=neutral, 
PublicKeyToken=f57227384aa6f133" Type="string" Action="write" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32\2.0.0.0" 
Name="RuntimeVersion" Value="v2.0.50727" Type="string" Action="write" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32\2.0.0.0" 
Name="CodeBase" Value="[#Lib.dll]" Type="string" Action="write" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32" 
Value="mscoree.dll" Type="string" Action="write" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32" Name="Class" 
Value="Lib.frmAdmin" Type="string" Action="write" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32" 
Name="Assembly" Value="Lib, Version=2.0.0.0<http://2.0.0.0>, Culture=neutral, 
PublicKeyToken=f57227384aa6f133" Type="string" Action="write" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32" 
Name="RuntimeVersion" Value="v2.0.50727" Type="string" Action="write" />
                <RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32" 
Name="CodeBase" Value="[#Lib.dll]" Type="string" Action="write" />


The main problem - how to create (Default) value in registry key  
HKCR\CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32 ?

This tag
<RegistryValue Root="HKCR" 
Key="CLSID\{83602D89-19ED-377D-BCFA-07DEC0826D15}\InprocServer32" 
Value="mscoree.dll" Type="string" Action="write" />
is duplicated with
<Class Id="{83602D89-19ED-377D-BCFA-07DEC0826D15}" Context="InprocServer32" 
Description="Lib.frmAdmin" ThreadingModel="both">...</Class>

what can i do with it?


--
Best regards, Myth
-------------------------------------------------------------------------
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