Update Get-WingetOutdatedApps.ps1

pull/41/head
Romain 2022-04-08 00:15:11 +02:00
parent 06f2cc0159
commit cf6ee6b96f
1 changed files with 2 additions and 1 deletions

View File

@ -14,8 +14,9 @@ function Get-WingetOutdatedApps {
}
#Get Winget Location in User context
$WingetCmd = Get-Command winget.exe -ErrorAction SilentlyContinue
if ($WingetCmd){
$Script:Winget = (Get-Command winget.exe -ErrorAction SilentlyContinue).Source
$Script:Winget = $WingetCmd.Source
}
#Get Winget Location in System context (WinGet < 1.17)
elseif (Test-Path "$WingetPath\AppInstallerCLI.exe"){