Update Get-WingetOutdatedApps.ps1
parent
06f2cc0159
commit
cf6ee6b96f
|
@ -14,8 +14,9 @@ function Get-WingetOutdatedApps {
|
||||||
}
|
}
|
||||||
|
|
||||||
#Get Winget Location in User context
|
#Get Winget Location in User context
|
||||||
|
$WingetCmd = Get-Command winget.exe -ErrorAction SilentlyContinue
|
||||||
if ($WingetCmd){
|
if ($WingetCmd){
|
||||||
$Script:Winget = (Get-Command winget.exe -ErrorAction SilentlyContinue).Source
|
$Script:Winget = $WingetCmd.Source
|
||||||
}
|
}
|
||||||
#Get Winget Location in System context (WinGet < 1.17)
|
#Get Winget Location in System context (WinGet < 1.17)
|
||||||
elseif (Test-Path "$WingetPath\AppInstallerCLI.exe"){
|
elseif (Test-Path "$WingetPath\AppInstallerCLI.exe"){
|
||||||
|
|
Loading…
Reference in New Issue