Dear all, I've been dealing with this issue when using heat to generate the registry information for COM-dll's. (I'm running 3.0.5419.0 of the WiX toolset)
For instance: Running heat on the file ChilKatUtil.dll results in: ... <Class Id="{C497BA35-66A4-4818-8AF0-6928A3EEEB68}" Context="InprocServer32" Description="Chilkat AppSettings" ThreadingModel="apartment" Version="1.0" Insertable="yes" Programmable="yes" Control="yes"> * <ProgId Id="Chilkat.AppSettings.1" Description="Chilkat AppSettings">* * <ProgId Id="Chilkat.AppSettings" Description="Chilkat AppSettings" />* * </ProgId>* <ProgId Id="ChilkatUtil.AppSettings.1" Description="Chilkat AppSettings"> <ProgId Id="ChilkatUtil.AppSettings" Description="Chilkat AppSettings" /> </ProgId> </Class> ... This compiles fine, but when linking I get the error: "error LGHT0130 : The primary key 'reg06989E0C50B7888525E711A46A9A609B' is duplicated in table 'Registry'. Please remove one of the entries or rename a part of the primary key to avoid the collision." When I remove section in bold it links fine, and the following entries are written to the registry: [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings] @="Chilkat AppSettings" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings\CLSID] @="{C497BA35-66A4-4818-8AF0-6928A3EEEB68}" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings\CurVer] @="ChilkatUtil.AppSettings.1" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings.1] @="Chilkat AppSettings" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings.1\CLSID] @="{C497BA35-66A4-4818-8AF0-6928A3EEEB68}" However, what I need in the registry is the following (I need both prog id's): [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\Chilkat.AppSettings] @="Chilkat AppSettings" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\Chilkat.AppSettings\CLSID] @="{C497BA35-66A4-4818-8AF0-6928A3EEEB68}" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\Chilkat.AppSettings\CurVer] @="Chilkat.AppSettings.1" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\Chilkat.AppSettings.1] @="Chilkat AppSettings" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\Chilkat.AppSettings.1\CLSID] @="{C497BA35-66A4-4818-8AF0-6928A3EEEB68}" [ [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings] @="Chilkat AppSettings" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings\CLSID] @="{C497BA35-66A4-4818-8AF0-6928A3EEEB68}" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings\CurVer] @="ChilkatUtil.AppSettings.1" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings.1] @="Chilkat AppSettings" [HKEY_USERS\S-1-5-21-746137067-2139871995-1417001333-500\Software\Classes\ChilkatUtil.AppSettings.1\CLSID] @="{C497BA35-66A4-4818-8AF0-6928A3EEEB68}" The funny thing is, with version 3.0.5006.0 I get the correct result, but it is a beta and I would much rather use an official release to build our MSI. Something must have changed to light between the 2 versions. I have tried with 3.5 versions also, but it breaks on the same linker error. I found this post from last year: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Possible-bug-with-duplicate-registry-keys-td3214414.html That person had the same problem, but I cannot reach him for comments. Also there seem to have been no replies on his question. Anyone has an idea ? Thanks in advance. JB ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users