You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Find-WinGetPackage returns a list of PSFoundCatalogPackage objects that have a CheckInstalledStatus method. I assumed this would help determine if a package in the search results was already installed, but it appears to return the string "Ok" regardless of install status. Is this the intended behavior?
PS ~> (Find-WinGetPackage-Id yt-dlp.yt-dlp).Where{ $_.CheckInstalledStatus() -eq'Ok' }
Name Id Version Source
-------------------
yt-dlp yt-dlp.yt-dlp 2025.02.19 winget
yt-dlp-nightly yt-dlp.yt-dlp.nightly 2025.03.05.232947 winget
PS ~>Get-WinGetPackage-Id yt-dlp.yt-dlp
Name Id Version Available Source
----------------------------
yt-dlp yt-dlp.yt-dlp 2025.02.19 winget
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Find-WinGetPackage
returns a list ofPSFoundCatalogPackage
objects that have aCheckInstalledStatus
method. I assumed this would help determine if a package in the search results was already installed, but it appears to return the string "Ok" regardless of install status. Is this the intended behavior?Beta Was this translation helpful? Give feedback.
All reactions