From a01b8de340ed2ddf7aa3250ee1010b222fbe21fd Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sun, 30 Jan 2022 17:39:00 +0100 Subject: [PATCH] Changed visual to 2022 & optimized download speed --- winget-update/winget-upgrade.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/winget-update/winget-upgrade.ps1 b/winget-update/winget-upgrade.ps1 index 56b29c8..9d6e887 100644 --- a/winget-update/winget-upgrade.ps1 +++ b/winget-update/winget-upgrade.ps1 @@ -130,7 +130,7 @@ function Get-WingetOutdated { [string]$AvailableVersion } - #Get WinGet Location to run as system + #Get WinGet Location $WingetCmd = Get-Command winget.exe -ErrorAction SilentlyContinue if ($WingetCmd){ $script:upgradecmd = $WingetCmd.Source @@ -144,7 +144,7 @@ function Get-WingetOutdated { $script:upgradecmd = Resolve-Path "C:\Program Files\WindowsApps\Microsoft.DesktopAppInstaller_*_x64__8wekyb3d8bbwe\winget.exe" | Select-Object -ExpandProperty Path } else{ - Write-Log "No Winget installed !" + Write-Log "Winget not installed !" return }