private static string GetWindowsName() { return Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion")?.GetValue("ProductName") as string ?? WindowsVersionHelper.GetVersion(); }