From 0be322f2cd1214529b111dceee0f20609e0f19ca Mon Sep 17 00:00:00 2001 From: Taiwan22 <17104157+Taiwan22@users.noreply.github.com> Date: Thu, 8 Feb 2024 19:50:06 +0100 Subject: [PATCH] Continue on 0x80070490 error - caused by third-party driver --- DriverUpdater/DismProvider.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/DriverUpdater/DismProvider.cs b/DriverUpdater/DismProvider.cs index b9975c9..6ba9b5c 100644 --- a/DriverUpdater/DismProvider.cs +++ b/DriverUpdater/DismProvider.cs @@ -173,9 +173,16 @@ private bool UninstallDrivers(string[] existingOEMDrivers) if ((ntStatus & 0x80000000) != 0) { Logging.Log(""); - Logging.Log($"RemoveOfflineDriver: ntStatus=0x{ntStatus:X8}, driver={driver}", Logging.LoggingLevel.Error); - - return false; + + if (ntStatus == 0x80070490) + { + Logging.Log($"RemoveOfflineDriver: ntStatus=0x{ntStatus:X8}, driver={driver}", Logging.LoggingLevel.Warning); + } + else + { + Logging.Log($"RemoveOfflineDriver: ntStatus=0x{ntStatus:X8}, driver={driver}", Logging.LoggingLevel.Error); + return false; + } } } Logging.ShowProgress(existingOEMDrivers.Length, existingOEMDrivers.Length, startTime, false);