From f77d57ebedcd6c151542bf337d617a1e74d6e8c2 Mon Sep 17 00:00:00 2001 From: Max Date: Sat, 9 Nov 2024 07:18:54 -0600 Subject: [PATCH] Change the operation verdict from Success to Failed for WinGet 'Install Technology Differs' error --- .../Providers/WinGetOperationProvider.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/UniGetUI.PackageEngine.Managers.WinGet/Providers/WinGetOperationProvider.cs b/src/UniGetUI.PackageEngine.Managers.WinGet/Providers/WinGetOperationProvider.cs index 5063c9f5a..61621ea48 100644 --- a/src/UniGetUI.PackageEngine.Managers.WinGet/Providers/WinGetOperationProvider.cs +++ b/src/UniGetUI.PackageEngine.Managers.WinGet/Providers/WinGetOperationProvider.cs @@ -113,7 +113,12 @@ public override OperationVeredict GetOperationResult( return OperationVeredict.Failed; } - if (uintCode == 0x8A15002B || uintCode == 0x8A15010D || uintCode == 0x8A15004F || uintCode == 0x8A15010E) + if (uintCode == 0x8A15002B) + { + return OperationVeredict.Failed; + } + + if (uintCode == 0x8A15010D || uintCode == 0x8A15004F || uintCode == 0x8A15010E) { // Application is already installed return OperationVeredict.Succeeded;