nsisDotNET


Introduction

When the .NET Framework is being installed on a computer the .NET installer writes registry keys when installation is successful. You can test whether the .NET Framework 4.5 or later is installed by checking the registry key HKLM\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full for a DWORD value named Release. The existence of this key indicates that the .NET Framework 4.5 or later has been installed on that computer.

Remarks

.NET Values

Below is a chart that shows the versions number corresponding DWORD value in the Release key. See below this chart for an example on how to use this in action. I will do my best to try and keep this page up-to-date with the latest values but you can visit this page for an updated list if the version you need isn't listed here.

Take special notice how there are two rows for 4.7, 4.6.2, 4.6.1, and 4.6. These versions require you to check for both values as the operating systems vary.

VersionOperating SystemValue of Release
4.7Windows 10 Creator's Update460798
4.7All except Windows 10 Creator's Update460805
4.6.2Windows 10 Anniversary Update394802
4.6.2All except Windows 10 Anniversary Update394806
4.6.1Windows 10 November Update394254
4.6.1All except Windows 10 November Update394271
4.6Windows 10393295
4.6All except Windows 10393297
4.5.2All379893
4.5.1Windows 8.1 or Windows Server 2012 R2378675
4.5.1Windows 8 and Wiindows 7378758
4.5All378389

Conclusion

I haven't fully tested these functions completely so if you run into problems with one of them let me know and I'll do my best to help. You can see this function working in action with SharpDevelop Portable.

Like I said above I will do my best to try and keep these up-to-date but if you need a version that these functions aren't checking for, let me know so I can revise them and update this page.