Hi, it's me again. Obviously, you've all figured out that I'm new to the programming thing. Here's my next stumbling block.:(

In C#, using Visual Studio 2010, I need for my program to check which version of .NET is installed on the machine, and then automatically install the v4 .NET SDK if it isn't already, so that the current program will run. I don't particularly care for this option, but it wasn't my call.

I know I have to code something to check the registry, but I can't figure it out. Isn't there an Environment.xxx or System.xxx that I can run the check off of?

Sorry, but my college C# programming class didn't touch on any of this stuff.