Merge pull request #138 from Romanitho/update-winget-version
Updated Winget link to latest stablepull/139/head
commit
f9bf0917fe
|
@ -143,7 +143,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 -ge "2022.624.444.0") {
|
If ([Version]$TestWinGet.Version -ge "2022.728.1939.0") {
|
||||||
|
|
||||||
Write-Host "WinGet is Installed" -ForegroundColor Green
|
Write-Host "WinGet is Installed" -ForegroundColor Green
|
||||||
|
|
||||||
|
@ -152,7 +152,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.1741/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"
|
$WinGetURL = "https://github.com/microsoft/winget-cli/releases/download/v1.3.2091/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")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue