Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
AssemblyFolders missing when running x64 MSBuild #3165
Following issue when running x64 MSBuild with DTF CAs:
After tracking down the issue the problem is the x64 MSBuild process and that the WiX installation only sets a wow64 x86 key:
When adding the AssemblyFolders reference to the registry the build works properly:
3.x: x placeholder, we found the issue for WiX 3.5.2509 but should be the same for all other WiX builds as well.
We cut the x64 installer, which wrote the x64 registry values. See http://www.joyofsetup.com/2010/03/27/wix-msbuild-v2-0-and-x64-systems/.
I ran into this issue as well while authoring a managed bootstrapper application for Burn (3.6 Beta). We have Team Foundation Server with a build agent on a 64-bit machine. The builds were failing because MSBuild 4.0 x64 run by the build agent wasn't finding the WiX SDK directory, even though we could open Visual Studio on the exact same machine could open the solution and build successfully. We used the workaround that Tobias described (duplicating the key in the 64-bit half of the registry), but I think that a build agent on a 64-bit machine is a kind of scenario that WiX should support without resort to manual registry fixes. Especially since WiX is now distributed via its own Burn wrapper, it could simply download the correct msi without causing confusion.
Thanks for the hint with your blog.
From your blog:
Actually that implementation for x64 MSBuild seems to have the described issue. And it seems, at first glance, work properly with the x64 regkey.
Maybe as proposal for solving that issue also in regard of not re-inventing an x64 package: What about a CA duplicating the reg key to the x64 hive to make MSBuild x64 happy: I know maybe you don't like that approach due an x86 package deploying to x64 structure...
We're using MSBuild 4.0 x64 + WiX x86 package (3.5.2519), so unfortunately we are affected by the regkey issue.
Just to emphasis: We can work around by adding the key but it would be nice for the x86 WiX installer for a proper MSBuild x64 configuration. It seems to be done for almost 98 % ;-)
Thanks and best regards,