I'm building an MSI installer using Advanced Installer and I need to check before installation starts whether both of the following are present:
.NET 8 Desktop Runtime (x64)
ASP.NET Core Runtime 8 (x64)
Requirements:
The check must occur before any files are copied
If either runtime is missing, the installer should display a custom dialog or message
The message should include a clickable link to the official .NET 8 download page
The check should not rely on registry searches — I prefer using dotnet --list-runtimes or other safe method
Ideally, if:
Only Desktop Runtime is missing → show a message with link to that
Only ASP.NET Core Runtime is missing → show separate message
Both missing → show a combined message
What's the best way to implement this using PowerShell Custom Actions, Launch Conditions, or Prerequisites?
I’d also appreciate sample scripts or a best-practice approach.
FOLLOW US