revert winget

This commit is contained in:
Chris Titus
2024-02-07 18:11:40 -06:00
parent 92fa85768f
commit c842584cfe
7 changed files with 20 additions and 36 deletions

View File

@ -16,7 +16,7 @@ function Invoke-WPFGetInstalled {
return
}
if(!(Test-WinUtilPackageManager -winget) -and $checkbox -eq "winget"){
if(!(Get-Command -Name winget -ErrorAction SilentlyContinue) -and $checkbox -eq "winget"){
Write-Host "==========================================="
Write-Host "-- Winget is not installed ---"
Write-Host "==========================================="

View File

@ -35,7 +35,7 @@ function Invoke-WPFInstall {
}
Catch {
Write-Host "==========================================="
Write-Host "-- Winget failed to install ---"
Write-Host "Error: $_"
Write-Host "==========================================="
}
Start-Sleep -Seconds 5

View File

@ -5,7 +5,7 @@ function Invoke-WPFInstallUpgrade {
Invokes the function that upgrades all installed programs using winget
#>
if(!(Test-WinUtilPackageManager -winget)){
if(!(Get-Command -Name winget -ErrorAction SilentlyContinue)){
Write-Host "==========================================="
Write-Host "-- Winget is not installed ---"
Write-Host "==========================================="