commit
221953687e
|
@ -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