Check for installed winget fails on windows 11
soredake opened this issue · 9 comments
works on my Win11. what's written ?
"Class not registred"
Can winget existence be checked with winget --version
or something like this?
WAU runs in system context. It means it is not the same way as user to access it currently. You cannot have any info with winget --version
or --info
I found why this is happening, it's because i've installed powershell from msstore, running install with powershell
instead of pwsh
fixes detection.
Seems like it can't detect if winget is installed because powershell is sandboxed.
Can you note somewhere that running install with powershell from msstore is not supported?
You cannot have any info with
winget --version
or--info
Maybe i'm understanding it wrong, but i've put winget --version
into Winget-AutoUpdate-Install.ps1 and it outputted version just fine.