Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for installed winget fails on windows 11 #113

Closed
soredake opened this issue Jun 29, 2022 · 9 comments
Closed

Check for installed winget fails on windows 11 #113

soredake opened this issue Jun 29, 2022 · 9 comments

Comments

@soredake
Copy link

image
image

@Romanitho
Copy link
Owner

works on my Win11. what's written ?

@soredake
Copy link
Author

soredake commented Jul 1, 2022

"Class not registred"

@soredake
Copy link
Author

soredake commented Jul 1, 2022

Can winget existence be checked with winget --version or something like this?

@Romanitho
Copy link
Owner

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

@soredake
Copy link
Author

soredake commented Jul 1, 2022

I found why this is happening, it's because i've installed powershell from msstore, running install with powershell instead of pwsh fixes detection.

@soredake
Copy link
Author

soredake commented Jul 1, 2022

Seems like it can't detect if winget is installed because powershell is sandboxed.

@soredake
Copy link
Author

soredake commented Jul 1, 2022

@soredake
Copy link
Author

soredake commented Jul 1, 2022

Can you note somewhere that running install with powershell from msstore is not supported?

@soredake soredake closed this as completed Jul 1, 2022
@soredake
Copy link
Author

soredake commented Jul 1, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants