Build the Polygon Project to build a native X64 COM DLL
Build the SetupProjectX64 to try to harvest the COM DLL with the HarvestFile Element and a Heat.exe call
Actual Result
Heat harvests the COM DLL and generates the wxs file and shows this warning:
warning HEAT5150: Could not harvest data from a file that was expected to be a SelfReg DLL
The build then fails with these two errors:
WIX0010 The TypeLib/@Language attribute was not found; it is required.
WIX0047 The TypeLib element is non-advertised and therefore requires a parent File element.
This appears to fix the issue, however it is not clear to us if this is the right location. So we created this bug to make sure we did not overlook something.
Please let us know if this fix should be submitted as a Pull Request.
Acknowledgements
[X] I acknowledge that this is a fully completed bug report. It is not a question or attempt to get help debugging my issue (because those should be sent to Discussions).
WiX Version
5.0.2
.NET or MSBuild or Visual Studio Version
.NET 8.0.400 Visual Studio 17.11.2
HeatWave Version
1.0.4
Windows Version
Win 11 23H2
Repro Repo
https://github.com/Nico-Ko/Example-Repository
Repro Steps
Actual Result
Heat harvests the COM DLL and generates the wxs file and shows this warning: warning HEAT5150: Could not harvest data from a file that was expected to be a SelfReg DLL
The build then fails with these two errors: WIX0010 The TypeLib/@Language attribute was not found; it is required. WIX0047 The TypeLib element is non-advertised and therefore requires a parent File element.
Expected Result
This file was created by a Heat version where the following line was patched:
https://github.com/wixtoolset/wix/blob/a75f23d32c3892e9977e7a48b4b347342ab182a9/src/tools/heat/UtilFinalizeHarvesterMutator.cs#L859C32-L859C132
From this:
to this:
This appears to fix the issue, however it is not clear to us if this is the right location. So we created this bug to make sure we did not overlook something.
Please let us know if this fix should be submitted as a Pull Request.
Acknowledgements