I am following this guide
https://www.advancedinstaller.com/user- ... et-ca.html
As a business requirement, we are writing our new custom actions with NET 8.0 as the target framework
Let's take into account that some of our customers might not have .NET 8 installed on the destination machine, how can I ensure the custom action runs no matter what?
I tried Self-Contained DLL thinking if I host all the required DotNet files in TempFolder\ProductCode\customActions I have my main DLL file and the depencies that Visual Studio gave me when I setup my publisher profile





So question is how can I run this DLL self contained ensuring the customers might not have DotNet 8 installed on their machines?
The answer can't be "install dotnet 8 as prerequisite" because we face issue with msiexec /i setup.msi /qn and prerequisites are not installed under after main package on the machine, which means custom action would fail.
As soon as I install Microsoft .NET Runtime - 8.0.11 (x64) the custom action works

Thanks
Curt