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
{{ message }}
Repository navigation
Check for installed winget fails on windows 11 #113
Activity
Romanitho commentedon Jun 30, 2022
works on my Win11. what's written ?
soredake commentedon Jul 1, 2022
"Class not registred"
soredake commentedon Jul 1, 2022
Can winget existence be checked with
winget --versionor something like this?Romanitho commentedon Jul 1, 2022
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 --versionor--infosoredake commentedon Jul 1, 2022
I found why this is happening, it's because i've installed powershell from msstore, running install with
powershellinstead ofpwshfixes detection.soredake commentedon Jul 1, 2022
Seems like it can't detect if winget is installed because powershell is sandboxed.
soredake commentedon Jul 1, 2022
PowerShell/PowerShell#17232
soredake commentedon Jul 1, 2022
Can you note somewhere that running install with powershell from msstore is not supported?
soredake commentedon Jul 1, 2022
Maybe i'm understanding it wrong, but i've put
winget --versioninto Winget-AutoUpdate-Install.ps1 and it outputted version just fine.