Skip to content

Ability for installed apps to query the database #5355

Closed

Description

@fasmide

Description of the new feature / enhancement

Hello

I have an app which primary distribution channel is going to be the official winget-pkgs source. Its very nice. But I would love to be able for our application to be able to query if updates are available, to inform the user that they should run "winget upgrade zyx".

Ive seen that the powershell commands are able to output json and as such has a somewhat more programmatic interface - but these are not shipped with windows, as the winget-cli is.

Sorry if this functionality is already available to me and I'm just missing it :)

Proposed technical implementation details

Could be as simple as
winget show --versions --exact xyz.tool --json

Activity

  1. Trenly commented on Apr 7, 2025

    @Trenly
    Contributor

    You should be able to do this using the COM API.

    Marti Climent has put together some examples and integrated with the COM APIs for his UniGetUI tool

  2. locked and limited conversation to collaborators on Apr 7, 2025
  3. converted this issue into a discussion #5356 on Apr 7, 2025
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

    Issue-FeatureThis is a feature request for the Windows Package Manager client.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions