mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-07-29 08:10:19 -05:00
@ -56,7 +56,7 @@ function Test-WinUtilPackageManager {
|
|||||||
# Check if Winget's Version is too old.
|
# Check if Winget's Version is too old.
|
||||||
$wingetCurrentVersion = [System.Version]::Parse($wingetVersion.Trim('v'))
|
$wingetCurrentVersion = [System.Version]::Parse($wingetVersion.Trim('v'))
|
||||||
# Grabs the latest release of Winget from the Github API for version check process.
|
# Grabs the latest release of Winget from the Github API for version check process.
|
||||||
$response = winget search -e Microsoft.AppInstaller
|
$response = winget search -e Microsoft.AppInstaller --accept-source-agreements
|
||||||
$wingetLatestVersion = ($response | Select-String -Pattern '\d+\.\d+\.\d+\.\d+').Matches.Value
|
$wingetLatestVersion = ($response | Select-String -Pattern '\d+\.\d+\.\d+\.\d+').Matches.Value
|
||||||
Write-Host "Latest Search Version: $wingetLatestVersion" -ForegroundColor White
|
Write-Host "Latest Search Version: $wingetLatestVersion" -ForegroundColor White
|
||||||
Write-Host "Current Installed Version: $wingetCurrentVersion" -ForegroundColor White
|
Write-Host "Current Installed Version: $wingetCurrentVersion" -ForegroundColor White
|
||||||
|
Reference in New Issue
Block a user