[wix-users] WiX & DCOM install, error LGHT0001

Sebastian Möller s.moeller at kip-deutschland.de
Tue Jul 10 04:03:38 PDT 2018


Just in case someone experiences similar:
Heat.exe created one registry key from harvesting the .tlb-file, that was the root cause for the error. Once I removed this registry key from the harvested fragment, the installer works well - also in 64bit.

But unfortunately, still not luck with the install later on. Although I get no error, there's no COM+ application registered.
Therefore, I wonder maybe it’s the totally wrong path I'm following?

So, I then switched to "ComPlusExtension" (https://www.firegiant.com/wix/tutorial/com-expression-syntax-miscellanea/complus-applications/ ). Looks much easier anyhow. But here I get errors during install, resulting in a rollback. The error is that my dll cannot get loaded. I found below on the internet: https://stackoverflow.com/questions/13944373/registering-a-net-assembly-in-a-com-application-outside-of-the-gac

The second "solution" mentions that there is a problem in WiX extension with selecting the correct version of 'System.EnterpriseServices'. Maybe by any chance does someone know whether this is still the case (and hence also the reason for my issue), or should this be already addressed with one of the latest versions?

Any help much appreciated,
Sebastian

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Sebastian Möller via wix-users
Sent: Wednesday, 4 July 2018 09:35
To: Nir Bar <nir.bar at panel-sw.com>; "WiX Toolset Users Mailing List" <wix-users at lists.wixtoolset.org>
Cc: Sebastian Möller <s.moeller at kip-deutschland.de>
Subject: Re: [wix-users] WiX & DCOM install, error LGHT0001

Yes, I think so. As I wrote before, I set ““Platform="x64"” to my installer project and added “Win64="yes"” to every component node in my project.”. IS there more for me to do?


And the log does not show much, just the error:

2018-07-03T11:26:14.7442767Z Project "D:\_work\8\s\NewProject\NewProject.sln" (1) is building "D:\_work\8\s\NewProject\MyInstallerTest\MyInstallerTest.wixproj" (6) on node 1 (default targets).
2018-07-03T11:26:14.7443861Z PrepareForBuild:
2018-07-03T11:26:14.7443986Z   Creating directory "bin\Release\".
2018-07-03T11:26:14.7492109Z Compile:
2018-07-03T11:26:14.7493013Z   C:\Program Files (x86)\WiX Toolset v3.11\bin\candle.exe -dLOCATION= -d"DevEnvDir=*Undefined if not building from within Visual Studio*" -dSolutionDir=D:\_work\8\s\NewProject\ -dSolutionExt=.sln -dSolutionFileName=NewProject.sln -dSolutionName=NewProject -dSolutionPath=D:\_work\8\s\NewProject\NewProject.sln -dConfiguration=Release -dOutDir=bin\Release\ -dPlatform=x86 -dProjectDir=D:\_work\8\s\NewProject\MyInstallerTest\ -dProjectExt=.wixproj -dProjectFileName=MyInstallerTest.wixproj -dProjectName=MyInstallerTest -dProjectPath=D:\_work\8\s\NewProject\MyInstallerTest\MyInstallerTest.wixproj -dTargetDir=D:\_work\8\s\NewProject\MyInstallerTest\bin\Release\ -dTargetExt=.msi -dTargetFileName=KipTestSetup.msi -dTargetName=KipTestSetup -dTargetPath=D:\_work\8\s\NewProject\MyInstallerTest\bin\Release\KipTestSetup.msi -dMyInstallerKipSetup.Configuration=Release -d"MyInstallerKipSetup.FullConfiguration=Release|AnyCPU" -dMyInstallerKipSetup.Platform=AnyCPU -dMyInstallerKipSetup.ProjectDir=D:\_work\8\s\NewProject\MyInstallerKipSetup\ -dMyInstallerKipSetup.ProjectExt=.csproj -dMyInstallerKipSetup.ProjectFileName=MyInstallerKipSetup.csproj -dMyInstallerKipSetup.ProjectName=MyInstallerKipSetup -dMyInstallerKipSetup.ProjectPath=D:\_work\8\s\NewProject\MyInstallerKipSetup\MyInstallerKipSetup.csproj -dMyInstallerKipSetup.TargetDir=D:\_work\8\s\NewProject\MyInstallerKipSetup\bin\Release\ -dMyInstallerKipSetup.TargetExt=.exe -dMyInstallerKipSetup.TargetFileName=KipSetup.exe -dMyInstallerKipSetup.TargetName=KipSetup -dMyInstallerKipSetup.TargetPath=D:\_work\8\s\NewProject\MyInstallerKipSetup\bin\Release\KipSetup.exe -out obj\Release\ -arch x86 -ext "C:\Program Files (x86)\WiX Toolset v3.11\bin\\WixUtilExtension.dll" Components.wxs ProductTest.wxs
2018-07-03T11:26:15.5589514Z Link:
2018-07-03T11:26:15.5590166Z   C:\Program Files (x86)\WiX Toolset v3.11\bin\Light.exe -out D:\_work\8\s\NewProject\MyInstallerTest\bin\Release\KipTestSetup.msi -pdbout D:\_work\8\s\NewProject\MyInstallerTest\bin\Release\KipTestSetup.wixpdb -cultures:null -ext "C:\Program Files (x86)\WiX Toolset v3.11\bin\\WixUtilExtension.dll" -contentsfile obj\Release\MyInstallerTest.wixproj.BindContentsFileListnull.txt -outputsfile obj\Release\MyInstallerTest.wixproj.BindOutputsFileListnull.txt -builtoutputsfile obj\Release\MyInstallerTest.wixproj.BindBuiltOutputsFileListnull.txt -wixprojectfile D:\_work\8\s\NewProject\MyInstallerTest\MyInstallerTest.wixproj obj\Release\Components.wixobj obj\Release\ProductTest.wixobj
2018-07-03T11:26:45.5322838Z ##[error]light.exe(0,0): Error LGHT0001: Item has already been added. Key in dictionary: 'regCF90477E35C350126B10A2341700802C'  Key being added: 'regCF90477E35C350126B10A2341700802C'
2018-07-03T11:26:45.5323130Z ##[debug]Processed: ##vso[task.logissue type=Error;sourcepath=light.exe;linenumber=0;columnnumber=0;code=LGHT0001;]Item has already been added. Key in dictionary: 'regCF90477E35C350126B10A2341700802C'  Key being added: 'regCF90477E35C350126B10A2341700802C'
2018-07-03T11:26:45.5330934Z light.exe : error LGHT0001: Item has already been added. Key in dictionary: 'regCF90477E35C350126B10A2341700802C'  Key being added: 'regCF90477E35C350126B10A2341700802C' [D:\_work\8\s\NewProject\MyInstallerTest\MyInstallerTest.wixproj]
2018-07-03T11:26:45.5468743Z ##[debug]Processed: ##vso[task.logdetail id=6a226806-e7d7-40f1-a84b-c620cd8b9517;parentid=7544456c-5363-4757-8272-bf5a484eea40;type=Build;result=Failed;finishtime=2018-07-03T11:26:45.5410955Z;progress=100;state=Completed;parentid=7544456c-5363-4757-8272-bf5a484eea40;name=;]
2018-07-03T11:26:45.5469290Z Done Building Project "D:\_work\8\s\NewProject\MyInstallerTest\MyInstallerTest.wixproj" (default targets) -- FAILED.
2018-07-03T11:26:45.5548137Z ##[debug]Processed: ##vso[task.logdetail id=09fc5c65-77eb-4e79-992f-8aa3c39b8bcc;parentid=7544456c-5363-4757-8272-bf5a484eea40;name=MyInstallerKipImagePro\MyInstallerKipImagePro.wixproj;type=Build;starttime=2018-07-03T11:26:45.5410955Z;state=InProgress;]

Any idea?

From: Nir Bar [mailto:nir.bar at panel-sw.com]
Sent: Wednesday, 4 July 2018 08:14
To: "WiX Toolset Users Mailing List" <wix-users at lists.wixtoolset.org>
Cc: Sebastian Möller <s.moeller at kip-deutschland.de>
Subject: Re: [wix-users] WiX & DCOM install, error LGHT0001

Are the MSI and relevant components marked x64?
Can you share install log?



--
Nir Bar, Independent WiX Expert. Creator of-
JetBA: WiX WPF Bootstrapper User Interface Framework
JetBA++: WiX Native Bootstrapper User Interface Framework
JetRummikub: Install WiX packages on remote machines



____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list