I will check my Windows os name (Windows 8 Pro) in c# but it gives an error, what's wrong?
RegistryKey reg = Registry.LocalMachine.OpenSubKey(@"HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion", true);
string currentKey;
currentKey = reg.GetValue("ProductName", true).ToString();
textBox1.Text = currentKey;
You can use Environment.OSVersion for this.
Edit: Getting the OS name is answered here: Stackoverflow OS Friendly name
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With