SEBWIN-558: Added Windows 11 to system info and supported OS list.
This commit is contained in:
parent
172845b3c0
commit
291c107fdd
4 changed files with 17 additions and 6 deletions
|
@ -19,7 +19,7 @@
|
|||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
|
||||
<!-- Windows 8.1 -->
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
|
||||
<!-- Windows 10 -->
|
||||
<!-- Windows 10 and Windows 11 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||
</application>
|
||||
</compatibility>
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<supportedOS Id="{4a2f28e3-53b9-4441-ba9c-d69d4a4a6e38}" />
|
||||
<!-- Windows 8.1 -->
|
||||
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}" />
|
||||
<!-- Windows 10 -->
|
||||
<!-- Windows 10 and Windows 11 -->
|
||||
<supportedOS Id="{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}" />
|
||||
</application>
|
||||
</compatibility>
|
||||
|
|
|
@ -17,6 +17,7 @@ namespace SafeExamBrowser.SystemComponents.Contracts
|
|||
Windows7,
|
||||
Windows8,
|
||||
Windows8_1,
|
||||
Windows10
|
||||
Windows10,
|
||||
Windows11
|
||||
}
|
||||
}
|
||||
|
|
|
@ -97,6 +97,7 @@ namespace SafeExamBrowser.SystemComponents
|
|||
// assembly needs to define an application manifest where the supported Windows versions are specified!
|
||||
var major = Environment.OSVersion.Version.Major;
|
||||
var minor = Environment.OSVersion.Version.Minor;
|
||||
var build = Environment.OSVersion.Version.Build;
|
||||
|
||||
// See https://en.wikipedia.org/wiki/List_of_Microsoft_Windows_versions for mapping source...
|
||||
if (major == 6)
|
||||
|
@ -115,9 +116,16 @@ namespace SafeExamBrowser.SystemComponents
|
|||
}
|
||||
}
|
||||
else if (major == 10)
|
||||
{
|
||||
if (build < 22000)
|
||||
{
|
||||
OperatingSystem = OperatingSystem.Windows10;
|
||||
}
|
||||
else
|
||||
{
|
||||
OperatingSystem = OperatingSystem.Windows11;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private string OperatingSystemName()
|
||||
|
@ -132,6 +140,8 @@ namespace SafeExamBrowser.SystemComponents
|
|||
return "Windows 8.1";
|
||||
case OperatingSystem.Windows10:
|
||||
return "Windows 10";
|
||||
case OperatingSystem.Windows11:
|
||||
return "Windows 11";
|
||||
default:
|
||||
return "Unknown Windows Version";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue