microsoft / microsoft/winget-cli

WinGet download installs more than one bundle. It should be latest

Open
#4,644 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-External Issue-Bug msstore
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

I am trying to download an app from the store.
Unless I specify a version, I expect to have a single app.
I actually get 2 or more.

Steps to reproduce

winget download 9WZDNCRFJ3PZ -d c:\temp\deleteme\9WZDNCRFJ3PZ
C:\temp\deleteme>dir c:\temp\deleteme\9WZDNCRFJ3PZ /b

Company Portal_User_X64_msstore_en-us.yaml
Dependencies
Microsoft.CompanyPortal_11.2.448.0_neutral_8wekyb3d8bbwe.appxbundle
Microsoft.CompanyPortal_2021.602.1826.0_neutral
_8wekyb3d8bbwe.appxbundle

Expected behavior

i should only have one package. That one should be latest: Microsoft.CompanyPortal_11.2.448.0_neutral_~_8wekyb3d8bbwe.appxbundle

Actual behavior

multiple packages downloaded
Microsoft.CompanyPortal_11.2.448.0_neutral_8wekyb3d8bbwe.appxbundle
Microsoft.CompanyPortal_2021.602.1826.0_neutral
_8wekyb3d8bbwe.appxbundle

Environment
Windows Package Manager (Preview) v1.9.1792-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26255.5000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.24.1792.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the reported winget download 9WZDNCRFJ3PZ command on Windows and trace the download handling for Microsoft Store bundles. The fix is complete when an unspecified version downloads only the latest appxbundle, while dependencies continue to be handled correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.