After searching on google for a simple method to get the current installed version of the .NET Framework, I decided to implement my own. I have put this method in its own class, because there are probably a lot of other similar methods that could be grouped together.
using System;
using System.IO;
using System.Security;
using System.Text.RegularExpressions;
namespace YourNameSpace
{
[...]
Continue reading about C# code to detect which version of the .NET Framework is installed
