Cannot load the CustomBA in WiX 4, Error 0x80131902 #8603
Replies: 4 comments
-
I am also getting the same issue |
Beta Was this translation helpful? Give feedback.
-
It will be very helpful, if implementer of this V4 Wix group to provide a sample working project(Hello World Application) for CustomBootStrapper application in V4. |
Beta Was this translation helpful? Give feedback.
-
Did either of you ever figure out what the problem was? I too am migrating from Wix 3 to 4 and encountering exactly the same issue. |
Beta Was this translation helpful? Give feedback.
-
Hi @michaelcourtin-seequent , I am able to fix this issue now.
Here <Payload SourceFile="$(var.BranchOutput)\CustomBA\bin$(var.Configuration)\ManagedBootstrapper.CustomBA.dll" ManagedBootstrapper.CustomBA.dll is a main Bootstrapper Application. This application (mine is a C# code) also needs to refer the Errors what we are getting is basically library is not loaded (fail to load WixToolset.Mba.Core.dll)failure. Please try to include WixToolset.Mba.Core.dll as the reference and test. |
Beta Was this translation helpful? Give feedback.
-
Hello,
having migrated my CustomBA from WiX 3.* to 4.0.5, it builds, but Burn does not call it.
I think I have considered all the necessary steps to bind the CustomBA to the bundle:
Bundle.wxs:
.NET Framework is contained as an ExePackage with bal:PrereqPackage="yes".
In my CustomBA (assembly is ManagedBootstrapper.CustomBA.dll), there is a factory class derived from BaseBootstrapperApplicationFactory where the Create method just creates a new CustomBootstrapperApplication object and sets its Command property to the command parameter.
My CustomBootstrapperApplication class is derived from BootstrapperApplication.
In the AssemblyInfo.cs, there is the attribute
[assembly: BootstrapperApplicationFactory(typeof(CustomBootstrapperApplicationFactory))]
instead of the old BootstrapperApplication attribute.I created WixToolset.Mba.Host.config from the old BootstrapperCore.config:
CustomBA and Bundle build, but when I run my Install.exe, log file tells me:
I have written an Exe wrapper that calls CustomBootstrapperApplicationFactory.Create() and then CustomBootstrapperApplication.Run(). Using this, CustomBA starts.
As of now, I have no clue what is missing here.
Beta Was this translation helpful? Give feedback.
All reactions