Upgrading v3 Managed Bootstrapper Applications WixBA for custom Bundle Name #8934
Unanswered
priyata29-dell
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How do I upgrade the custom WixBA code to support multiple Bundle Name for different applications.
According to the WIX article, refere the para below :-
v4 added the ability to use .NET Core managed BA’s but that is not covered here since v3 only supported .NET Framework BA’s. Note that Microsoft chose a confusing naming convention for newer versions of .NET Core. .NET 5+ is a completely different runtime from .NET Framework. To use a BA written in .NET 6+, use bal:WixDotNetCoreBootstrapperApplicationHost instead of bal:WixManagedBootstrapperApplicationHost. .NET 5 and earlier versions are not supported because they were already at end of life when v4 shipped.
Even though the WixBA is not currently shipping, it is still available at https://github.com/wixtoolset/wix4/tree/HEAD/src/test/burn/WixToolset.WixBA. You can basically see a step-by-step example of upgrading a v3 MBA by looking at the history of that folder and WixToolset.WixBA.csproj. Another folder that might be useful is https://github.com/wixtoolset/wix4/tree/HEAD/src/test/burn/TestData/TestBA.
In v3, MBAs needed to be built against the same version of BootstrapperCore.dll as the bundle. They didn’t need to include it as a payload because the Bal WiX extension automatically added it. However, they did need to provide a BootstrapperCore.config file to inform the MBA host which .NET Framework runtime it supported and which DLL contained the MBA.
In v4, the config file is named WixToolset.Mba.Host.config. The MBA must use the WixToolset.Mba.Core nuget package, a sample config file is included in the package. The Bal WiX extension does not add WixToolset.Mba.Core.dll or mbanative.dll so both must be added along with all the other dependencies of the MBA. The MBA project should be an SDK-style project and built for a specific RID (e.g. win-x86).
The root namespace changed from Microsoft.Tools.WindowsInstallerXml.Bootstrapper to WixToolset.Mba.Core.
I want to have a new wixba code fof v4 which will work in .net framework. If not, how do we support .net core in .net framework?
Beta Was this translation helpful? Give feedback.
All reactions