I recently upgraded my WPF app from .NET framework 4.7 to .NET 6. But when I try to deploy my app on my client's computer, my app won't start because this new computer don't have .NET Desktop Runtime installed. So, how do I detect the absence of .NET runtime and promt a window asking the app user to download .NET runtime? Just like the below picture:
I'm not using any installer, just copy and paste my build folder to the new machine.
I remember that when I was using .NET framework, if the runtime was missing, the Windows system would automatically promt a window ask me to download the runtime.