From 8b3f9b083827eacc28f41e2490f0a75d0bf5cef0 Mon Sep 17 00:00:00 2001 From: Lau <68616630+Notselwyn@users.noreply.github.com> Date: Mon, 22 Apr 2024 11:26:20 +0200 Subject: [PATCH 1/3] Update VirtualMachineDetector.cs --- .../VirtualMachineDetector.cs | 41 ------------------- 1 file changed, 41 deletions(-) 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"); From 1edde7b6f5f42e5bd188e72ff9e5d174b95cea80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 7 May 2024 11:48:10 +0200 Subject: [PATCH 2/3] Updated build server URL. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c81cc63d..eaf29f15 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,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 | From 60ee95a9ee599e5932f0b6ed5cea98ff704f56eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 7 May 2024 11:49:36 +0200 Subject: [PATCH 3/3] Removed WebView2 dependency. --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index eaf29f15..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