From a5271597e9ae0bf3e65ad8307e4420e60ebd8374 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Tue, 27 Jan 2026 20:03:56 +0100 Subject: [PATCH] [Fix] Force WinGet source (#3918) * [Fix] Force WinGet source * Force WinGet source for uninstall --- functions/private/Install-WinUtilProgramWinget.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/private/Install-WinUtilProgramWinget.ps1 b/functions/private/Install-WinUtilProgramWinget.ps1 index 3253834e..71886633 100644 --- a/functions/private/Install-WinUtilProgramWinget.ps1 +++ b/functions/private/Install-WinUtilProgramWinget.ps1 @@ -39,9 +39,9 @@ Function Install-WinUtilProgramWinget { $commonArguments = "--id $wingetId --silent" $arguments = if ($Action -eq "Install") { - "install $commonArguments --accept-source-agreements --accept-package-agreements" + "install $commonArguments --accept-source-agreements --accept-package-agreements --source winget" } else { - "uninstall $commonArguments" + "uninstall $commonArguments --source winget" } $processParams = @{