From 1c218148057d18f553afe88e82d3ddbb2f612d3d Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Tue, 19 Apr 2022 13:11:17 +0200 Subject: [PATCH] Using preview version to resolve issue as system --- Winget-AutoUpdate-Install.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index 8475cf3..1569fe3 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -109,7 +109,7 @@ function Install-WinGet{ #Check Package Install Write-Host "Checking if Winget is installed" -ForegroundColor Yellow $TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq "Microsoft.DesktopAppInstaller"} - If([Version]$TestWinGet.Version -gt "2022.0.0.0") { + If([Version]$TestWinGet.Version -gt "2022.213.0.0") { Write-Host "WinGet is Installed" -ForegroundColor Green @@ -118,7 +118,7 @@ function Install-WinGet{ #Download WinGet MSIXBundle Write-Host "Not installed. Downloading WinGet..." - $WinGetURL = "https://aka.ms/getwinget" + $WinGetURL = "https://github.com/microsoft/winget-cli/releases/download/v1.3.431/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" $WebClient=New-Object System.Net.WebClient $WebClient.DownloadFile($WinGetURL, "$PSScriptRoot\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle")