Skip to content

Commit ffba313

Browse files
committed
Mark an uninstall as successful if there is no package to uninstall
1 parent d2bdfd9 commit ffba313

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/UniGetUI.PackageEngine.Managers.WinGet/Helpers/WinGetPkgOperationHelper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,12 @@ protected override OperationVeredict _getOperationResult(
180180
return OperationVeredict.AutoRetry;
181181
}
182182

183+
if (uintCode == 0x8A150014 && operation is OperationType.Uninstall)
184+
{
185+
// Application not found
186+
return OperationVeredict.Success;
187+
}
188+
183189
return OperationVeredict.Failure;
184190
}
185191

0 commit comments

Comments
 (0)