I am writing an .nsi script, which after successfully installing, will not allow me to run the program after showing the popup in the screenshot above "You must install .NET Desktop Runtime to run this application".
I have clicked the Learn more link: https://learn.microsoft.com/en-us/do...atible-runtime
I followed the suggestions in the link above:
- Set environment variables DOTNET_MULTILEVEL_LOOKUP=0 and DOTNET_ROOT=C:\Program Files\dotnet since they weren't before, that didn't fix it.
- I have Microsoft Windows Desktop Runtime - 8.0.8 (x64) installed
- In my csproj, all of them are <TargetFramework>net8.0-windows10.0.20348.0</TargetFramework>
I've uninstalled and reinstalled .NET Desktop Runtime 8.0.8 several times and it hasn't fixed the issue.
I've rebuilt the .nsi script and re-ran the installation.
I can't seem to get a solution for this, does anyone have any suggestions?