diff --git a/modSystem.cs b/modSystem.cs index 2edc56a..35e26c2 100644 --- a/modSystem.cs +++ b/modSystem.cs @@ -77,13 +77,7 @@ public static string GetWindowsVersion() try { RegistryKey currentVersion = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\MICROSOFT\Windows NT\CurrentVersion"); - string currentWindowsVersion = ""; - if (currentVersion.GetValue("CurrentBuild").ToString() == "9600") { - // Temporary support for Windows Server 2012 R2 - currentWindowsVersion = "6.3.9600." + "." + currentVersion.GetValue("UBR").ToString(); - } else { - currentWindowsVersion = currentVersion.GetValue("CurrentMajorVersionNumber").ToString() + "." + currentVersion.GetValue("CurrentMinorVersionNumber").ToString() + "." + currentVersion.GetValue("CurrentBuild").ToString() + "." + currentVersion.GetValue("UBR").ToString(); - } + string currentWindowsVersion = currentVersion.GetValue("CurrentMajorVersionNumber").ToString() + "." + currentVersion.GetValue("CurrentMinorVersionNumber").ToString() + "." + currentVersion.GetValue("CurrentBuild").ToString() + "." + currentVersion.GetValue("UBR").ToString(); string oldWindowsVersion = modDatabase.GetConfig("System_LastKnownWindowsVersion"); if (oldWindowsVersion != currentWindowsVersion)