Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Document how to include NetFx redist packages in how-to #4520
With WiX Toolset 3.9.901:
In a custom BA I'm trying to use NetFxExtension to automatically detect and install the offline version of the .NET Framework 4.5.1 by using . I have included the setup also as payload as "redist\NDP451-KB2858728-x86-x64-AllOS-ENU.exe" as well as setting the variables:
The resulting bootstrapper executable shows the ":NET Framework required" dialog on startup (with EULA link correctly working), but then never actually starts the the NET 4.5.1 setup. From the BA logfile, on Win 7.1 with just NET 3.5:
I suspect this might be caused by a missing part in NetFx451.wxs - compared to the NetFx4.5.wxs (files from wix39-debug.zip) it has no
The same approach works correctly with NetFx45Redist
In order for the prereq BA to install a package, the package's Id must be assigned to the WixMbaPrereqPackageId WixVariable (you have Netfx451Full but it should be NetFx451Redist, the same as your PackageRef). Or you would have to set the bal:PrereqSupportPackage attribute on the package to 'yes' and make sure the install condition is true.
Thanks a lot, shall! That was the mistake I made.
I'd like to suggest to add this info to the documentation (as well as the necessity to include the NET installer at Redist\NDP451-KB2858728-x86-x64-AllOS-ENU.exe) because I only found the WixVariables mentioned in a stackoverflow thread.