Skip to content

Check for installed winget fails on windows 11 #113

Closed

Description

@soredake

image
image

Activity

  1. Romanitho commented on Jun 30, 2022

    @Romanitho
    Owner

    works on my Win11. what's written ?

  2. soredake commented on Jul 1, 2022

    @soredake
    Author

    "Class not registred"

  3. soredake commented on Jul 1, 2022

    @soredake
    Author

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

  4. Romanitho commented on Jul 1, 2022

    @Romanitho
    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

  5. soredake commented on Jul 1, 2022

    @soredake
    Author

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

  6. soredake commented on Jul 1, 2022

    @soredake
    Author

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

  7. soredake commented on Jul 1, 2022

    @soredake
    Author
  8. soredake commented on Jul 1, 2022

    @soredake
    Author

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

  9. soredake commented on Jul 1, 2022

    @soredake
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions