Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Created May 26, 2016 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guitarrapc/b55a03e721a1c518fd52b12933502484 to your computer and use it in GitHub Desktop.
Save guitarrapc/b55a03e721a1c518fd52b12933502484 to your computer and use it in GitHub Desktop.
private static void Get45or451FromRegistry()
{
using (RegistryKey ndpKey = RegistryKey.OpenBaseKey(RegistryHive.LocalMachine, RegistryView.Registry32).OpenSubKey("SOFTWARE\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full\\"))
{
ndpKey.GetValue("Version").Dump();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment