WIX6818 When using DotNetCoreBootstrapperApplicationHost, the Payload element for the BA's entry point DLL must have bal:BAFactoryAssembly="yes". #7276
-
Hey guys, I am very new to Wix4.
I am trying to get .NET core installed before the Msi package is installed (Or after it actually doesn't matter). Could someone help me understand what the error message I am getting is like I am 5 years old. Cheers. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I think its fairly urgent to start writing tutorials - the documentation isn't clear in most instances as to how to achieve common tasks like this. Once I figure out how to do what I want, I would be happy to contribute. |
Beta Was this translation helpful? Give feedback.
-
For those who come across this in the near future
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:netfx="http://wixtoolset.org/schemas/v4/wxs/netfx" xmlns:bal="http://wixtoolset.org/schemas/v4/wxs/bal">
<Fragment>
<PackageGroup Id="NetCoreInstaller">
<!-- Install .NET 6.0 -->
<ExePackage Id="Netfx60"
DisplayName="Microsoft .NET 7.0 SDK And Runtime"
PerMachine="yes" Permanent="yes" Vital="yes" InstallArguments="/norestart /quiet"
DetectCondition="DOT_NET_VER >= v6.0.14"
bal:PrereqPackage="yes">
<ExePackagePayload
Name="dotnet-sdk-7.0.202-win-x64.exe"
DownloadUrl="https://download.visualstudio.microsoft.com/download/pr/c6ad374b-9b66-49ed-a140-588348d0c29a/78084d635f2a4011ccd65dc7fd9e83ce/dotnet-sdk-7.0.202-win-x64.exe"
Hash="58e9437f2ead1e9edd67d837f7d2e1313d866d510629465b0485965a9540c65eddd6fffafad9cf3261cb476a1dfff20404908f3bf06a7e01bc3bebc0bcb27d39"
Size="212900"
/>
<ExitCode Value="0" Behavior="success"/>
<ExitCode Behavior="scheduleReboot"/>
</ExePackage>
</PackageGroup>
</Fragment>
</Wix> A quick explanation of the XML node properties
|
Beta Was this translation helpful? Give feedback.
WixDotNetCoreBootstrapperApplicationHost
is for when you're providing a custom BA. If you aren't, you might try https://wixtoolset.org/docs/reference/schema/bal/wixstandardbootstrapperapplication/ instead.