From 0d3c9187cf4563d7faed5834b485e948bbd74459 Mon Sep 17 00:00:00 2001 From: Romain SANTOT <96626929+Romanitho@users.noreply.github.com> Date: Mon, 30 May 2022 17:04:21 +0200 Subject: [PATCH] Fixed Winget version detection --- Winget-AutoUpdate-Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index 8cb2869..022b1c3 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -129,7 +129,7 @@ function Install-WinGet{ #Check Package Install $TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq "Microsoft.DesktopAppInstaller"} - If([Version]$TestWinGet.Version -gt "2022.519.1908.0") { + If([Version]$TestWinGet.Version -ge "2022.519.1908.0") { Write-Host "WinGet is Installed" -ForegroundColor Green