From ef97a8da241af9abb7de7c00a630e598c73b6b27 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Wed, 5 Mar 2025 19:13:39 +0100 Subject: [PATCH] [WinGet] Fix install loop (#3235) Only this parameter was missing --- functions/private/Test-WinUtilPackageManager.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/private/Test-WinUtilPackageManager.ps1 b/functions/private/Test-WinUtilPackageManager.ps1 index b2d7c944..0b4e53e2 100644 --- a/functions/private/Test-WinUtilPackageManager.ps1 +++ b/functions/private/Test-WinUtilPackageManager.ps1 @@ -56,7 +56,7 @@ function Test-WinUtilPackageManager { # Check if Winget's Version is too old. $wingetCurrentVersion = [System.Version]::Parse($wingetVersion.Trim('v')) # Grabs the latest release of Winget from the Github API for version check process. - $response = winget search -e Microsoft.AppInstaller + $response = winget search -e Microsoft.AppInstaller --accept-source-agreements $wingetLatestVersion = ($response | Select-String -Pattern '\d+\.\d+\.\d+\.\d+').Matches.Value Write-Host "Latest Search Version: $wingetLatestVersion" -ForegroundColor White Write-Host "Current Installed Version: $wingetCurrentVersion" -ForegroundColor White