Skip to content
⌘ NSIS Forum Archive

"You must install .NET Desktop Runtime to run this application"

2 posts

Chiemychanga#

"You must install .NET Desktop Runtime to run this application"

Click image for larger version

Name:	image.png
Views:	218
Size:	186.3 KB
ID:	4637546

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?
Anders#
First get the thing working without NSIS, then ask again here for help with doing the manual steps in NSIS...