Merge pull request #1 from SkipToTheEndpoint/winget-v1.3.1251-preview

Update Winget to latest Preview
pull/77/head
SkipToTheEndpoint 2022-05-17 09:47:28 +01:00 committed by GitHub
commit 3af2cafd2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ function Install-WinGet{
#Check Package Install #Check Package Install
Write-Host "Checking if Winget is installed" -ForegroundColor Yellow Write-Host "Checking if Winget is installed" -ForegroundColor Yellow
$TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object {$_.DisplayName -eq "Microsoft.DesktopAppInstaller"} $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 Write-Host "WinGet is Installed" -ForegroundColor Green
@ -133,7 +133,7 @@ function Install-WinGet{
#Download WinGet MSIXBundle #Download WinGet MSIXBundle
Write-Host "Not installed. Downloading WinGet..." 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=New-Object System.Net.WebClient
$WebClient.DownloadFile($WinGetURL, "$PSScriptRoot\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle") $WebClient.DownloadFile($WinGetURL, "$PSScriptRoot\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle")