From e0fbab1d7774ed9979ba78d20df07436fed43110 Mon Sep 17 00:00:00 2001 From: Gustave Monce Date: Sun, 25 Feb 2024 17:17:12 +0100 Subject: [PATCH] Also handle edge case of qcursext --- DriverUpdater/RegistryFixer.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/DriverUpdater/RegistryFixer.cs b/DriverUpdater/RegistryFixer.cs index 7b11398..9fca1ca 100644 --- a/DriverUpdater/RegistryFixer.cs +++ b/DriverUpdater/RegistryFixer.cs @@ -17,7 +17,9 @@ public static void FixLeftOvers(string DrivePath) private static void FixDriverStorePathsInRegistryValueForLeftOvers(RegistryKey registryKey, string registryValue) { Regex regex = new("(.*oem[0-9]+\\.inf.*)|(.*(QCOM|MSHW|VEN_QCOM&DEV_|VEN_MSHW&DEV_)[0-9A-F]{4}.*)|(.*surface.*duo.*inf)|(.*\\\\qc.*)|(.*\\\\surface.*)"); - Regex antiRegex = new("(.*QCOM((2465)|(2466)|(2484)|(2488)|(24A5)|(24B6)|(24B7)|(24BF)|(7002)|(FFE1)|(FFE2)|(FFE3)|(FFE4)|(FFE5)).*)|(.*qcap.*)"); + Regex antiRegex = new("(.*QCOM((2465)|(2466)|(2484)|(2488)|(24A5)|(24B6)|(24B7)|(24BF)|(7002)|(FFE1)|(FFE2)|(FFE3)|(FFE4)|(FFE5)).*)|(.*qcap.*)|(.*qcursext.*)"); + + // TODO: // Key: Microsoft\Windows\CurrentVersion\Setup\PnpResources\Registry\HKLM\ ... \ // Val: Owners @@ -115,7 +117,7 @@ private static void CrawlInRegistryKeyForLeftOvers(RegistryKey registryKey) if (registryKey != null) { Regex regex = new("(.*oem[0-9]+\\.inf.*)|(.*(QCOM|MSHW|VEN_QCOM&DEV_|VEN_MSHW&DEV_)[0-9A-F]{4}.*)|(.*surface.*duo.*inf)|(.*\\\\qc.*)|(.*\\\\surface.*)"); - Regex antiRegex = new("(.*QCOM((2465)|(2466)|(2484)|(2488)|(24A5)|(24B6)|(24B7)|(24BF)|(7002)|(FFE1)|(FFE2)|(FFE3)|(FFE4)|(FFE5)).*)|(.*qcap.*)"); + Regex antiRegex = new("(.*QCOM((2465)|(2466)|(2484)|(2488)|(24A5)|(24B6)|(24B7)|(24BF)|(7002)|(FFE1)|(FFE2)|(FFE3)|(FFE4)|(FFE5)).*)|(.*qcap.*)|(.*qcursext.*)"); foreach (string subRegistryValue in registryKey.GetValueNames()) {