Merge pull request #94 from Romanitho/test

Fixed Winget version detection
pull/95/head
Romain 2022-05-30 17:04:53 +02:00 committed by GitHub
commit eaf972842b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ 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"}
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 Write-Host "WinGet is Installed" -ForegroundColor Green