diff --git a/README.md b/README.md index c81cc63d..3d3824eb 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,6 @@ Refactored version of Safe Exam Browser for Windows with Chromium as integrated SEB 3.x requires the prerequisites listed below in order to work correctly. These are automatically installed with the setup bundle and need only be manually installed when using the MSI packages. * .NET Framework 4.8 Runtime: https://dotnet.microsoft.com/download/dotnet-framework/net48 -* Microsoft Edge WebView2 Runtime: https://go.microsoft.com/fwlink/p/?LinkId=2124703 * Visual C++ 2015-2019 Redistributable: https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads ## Project Status @@ -17,7 +16,7 @@ SEB 3.x requires the prerequisites listed below in order to work correctly. Thes | Aspect | Status | Details | | ----------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------- | -| Development Build | ![Development Build Status](https://sebdev-let.ethz.ch/api/projects/status/kq78qrjtnpk82ti0?svg=true) | https://sebdev-let.ethz.ch/project/appveyor/seb-win-refactoring | +| Development Build | ![Development Build Status](https://sebdev.ethz.ch/api/projects/status/kq78qrjtnpk82ti0?svg=true) | https://sebdev.ethz.ch/project/appveyor/seb-win-refactoring | | Test Build | ![Test Build Status](https://ci.appveyor.com/api/projects/status/a56akt9r174570m7?svg=true) | https://ci.appveyor.com/project/dbuechel/seb-win-refactoring | | Test Run | ![AppVeyor Tests](https://img.shields.io/appveyor/tests/dbuechel/seb-win-refactoring?logo=appveyor&logoColor=%23ccc) | https://ci.appveyor.com/project/dbuechel/seb-win-refactoring | | Code Coverage | ![Code Coverage](https://codecov.io/gh/SafeExamBrowser/seb-win-refactoring/branch/master/graph/badge.svg) | https://codecov.io/gh/SafeExamBrowser/seb-win-refactoring | diff --git a/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs b/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs index 6e6e530e..cec40df6 100644 --- a/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs +++ b/SafeExamBrowser.SystemComponents/VirtualMachineDetector.cs @@ -105,7 +105,6 @@ namespace SafeExamBrowser.SystemComponents { var isVirtualRegistry = false; - isVirtualRegistry |= HasHistoricVirtualMachineHardwareConfiguration(); isVirtualRegistry |= HasLocalVirtualMachineDeviceCache(); return isVirtualRegistry; @@ -134,46 +133,6 @@ namespace SafeExamBrowser.SystemComponents return isVirtualSystem; } - private bool HasHistoricVirtualMachineHardwareConfiguration() - { - var hasHistoricConfiguration = false; - - if (registry.TryGetSubKeys(RegistryValue.MachineHive.HardwareConfig_Key, out var hardwareConfigSubkeys)) - { - foreach (var configId in hardwareConfigSubkeys) - { - var hardwareConfigKey = $@"{RegistryValue.MachineHive.HardwareConfig_Key}\{configId}"; - var computerIdsKey = $@"{hardwareConfigKey}\ComputerIds"; - var success = true; - - success &= registry.TryRead(hardwareConfigKey, "BIOSVendor", out var biosVendor); - success &= registry.TryRead(hardwareConfigKey, "BIOSVersion", out var biosVersion); - success &= registry.TryRead(hardwareConfigKey, "SystemManufacturer", out var systemManufacturer); - success &= registry.TryRead(hardwareConfigKey, "SystemProductName", out var systemProductName); - - if (success) - { - var biosInfo = $"{(string) biosVendor} {(string) biosVersion}"; - - hasHistoricConfiguration |= IsVirtualSystem(biosInfo, (string) systemManufacturer, (string) systemProductName); - - if (registry.TryGetNames(computerIdsKey, out var computerIdNames)) - { - foreach (var computerIdName in computerIdNames) - { - if (registry.TryRead(computerIdsKey, computerIdName, out var computerSummary)) - { - hasHistoricConfiguration |= IsVirtualSystem((string) computerSummary, (string) systemManufacturer, (string) systemProductName); - } - } - } - } - } - } - - return hasHistoricConfiguration; - } - private bool HasLocalVirtualMachineDeviceCache() { var deviceName = System.Environment.GetEnvironmentVariable("COMPUTERNAME");