RegistryKey key = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\InetStp"); textBox1.Text = key.GetValue("MajorVersion").ToString();