Merge pull request #359 from Sinderan/main

Update installer link to 1.5.1572
pull/365/head
Romain 2023-07-19 14:11:30 +02:00 committed by GitHub
commit d380d11a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -186,8 +186,8 @@ function Install-WinGet {
#Check Package Install #Check Package Install
$TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq "Microsoft.DesktopAppInstaller" } $TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq "Microsoft.DesktopAppInstaller" }
#Current: v1.4.10173 = 1.19.10173.0 = 2023.118.406.0 #Current: v1.5.1572 = 1.20.1572.0 = 2023.606.2047.0
If ([Version]$TestWinGet.Version -ge "2023.118.406.0") { If ([Version]$TestWinGet.Version -ge "2023.606.2047.0") {
Write-Host "WinGet is Installed" -ForegroundColor Green Write-Host "WinGet is Installed" -ForegroundColor Green
@ -196,7 +196,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.4.10173/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" $WinGetURL = "https://github.com/microsoft/winget-cli/releases/download/v1.5.1572/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")

View File

@ -54,8 +54,8 @@ function Invoke-PostUpdateActions {
Write-ToLog "-> Checking if Winget is installed/up to date" "yellow" Write-ToLog "-> Checking if Winget is installed/up to date" "yellow"
$TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq "Microsoft.DesktopAppInstaller" } $TestWinGet = Get-AppxProvisionedPackage -Online | Where-Object { $_.DisplayName -eq "Microsoft.DesktopAppInstaller" }
#Current: v1.4.10173 = 1.19.10173.0 = 2023.118.406.0 #Current: v1.5.1572 = 1.20.1572.0 = 2023.606.2047.0
If ([Version]$TestWinGet.Version -ge "2023.118.406.0") { If ([Version]$TestWinGet.Version -ge "2023.606.2047.0") {
Write-ToLog "-> WinGet is Installed/up to date" "green" Write-ToLog "-> WinGet is Installed/up to date" "green"