From c281b9a645d644c01605f953e01b3d6b87a6ecd7 Mon Sep 17 00:00:00 2001 From: SkipToTheEndpoint <104939301+SkipToTheEndpoint@users.noreply.github.com> Date: Tue, 17 May 2022 09:33:06 +0100 Subject: [PATCH] Update Winget to latest Preview The latest Winget Preview version (https://github.com/microsoft/winget-cli/releases/tag/v1.3.1251-preview) includes a fix to allow the install of packages from the MSStore without an MSA account. This means that packages like the Company Portal could be installed without requiring the MS Store for Business linked in Intune. --- 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 1e95d81..a854792 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -124,7 +124,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.213.0.0") { + If([Version]$TestWinGet.Version -gt "2022.506.16.0") { Write-Host "WinGet is Installed" -ForegroundColor Green @@ -133,7 +133,7 @@ function Install-WinGet{ #Download WinGet MSIXBundle Write-Host "Not installed. Downloading WinGet..." - $WinGetURL = "https://github.com/microsoft/winget-cli/releases/download/v1.3.431/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" + $WinGetURL = "https://github.com/microsoft/winget-cli/releases/download/v1.3.1251-preview/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" $WebClient=New-Object System.Net.WebClient $WebClient.DownloadFile($WinGetURL, "$PSScriptRoot\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle")