Skip to content

Install and download operations hang for some packages #43

Description

@yoshiask

Describe the bug
The WinGetPackageManager.InstallAsync and WinGetPackageManager.DownloadAsync methods will wait forever if the selected package has any required agreements (for example, PowerToys) Both methods run something like winget install XP89DCGQ3K6VLD --accept-source-agreements, which will prompt the user to agree to terms before continuing to install or download the package.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new instance of WinGetPackageManager
  2. Choose any folder to download to
  3. Call await _packageManager.DownloadAsync("XP89DCGQ3K6VLD", folder)
  4. Method never returns, without any errors.

Expected behavior
The install/download methods should be able to accept package terms, perhaps with a flag to do so automatically.

Package Version
4.2.0

Additional context
I experimented with passing --disable-interactivity, but that causes the command to fail immediately with "Package agreements were not agreed to. Operation cancelled."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions