microsoft / microsoft/winget-cli

WDK and SDK Side by Side installs do not work correctly

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

Nobody has claimed this yet.

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

Description

Brief description of your issue

The SDK and WDK packages on a major version should be side by side. Example:
Windows Driver Kit - Windows 10.0.22621.2428 Microsoft.WindowsWDK.10.0.22621 10.1.22621.2428 winget
Windows Driver Kit - Windows 10.1.22000.1 Microsoft.WindowsWDK.10.0.22000 10.1.22000.1 winget
Windows Driver Kit Microsoft.WindowsWDK.10.0.19041 10.1.19041.685 winget

I should be able to install these 3 packages together

Steps to reproduce

winget install Microsoft.WindowsWDK.10.0.22621
winget install Microsoft.WindowsWDK.10.0.22000

  1. notice you are blocked from installing.
    Found an existing package already installed. Trying to upgrade the installed package...

You can force it by typing
winget install Microsoft.WindowsWDK.10.0.22000 --force

This will install correctly, but then the ID is messed up.
image

Expected behavior

winget install will install both with no errors
And there will be not sharing the ID in List command.

Actual behavior

Winget detects a different version as an upgrade.

Environment
PS C:\Users\WDAGUtilityAccount\Desktop\winget-pkgs> winget --info
Windows Package Manager v1.7.11261
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.26220.5000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.22.11261.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 two winget install commands from the issue on the stated Windows environment and inspect how package IDs are matched during installation. The issue names no source files or tests. Done means both WDK packages install together without an upgrade prompt and retain distinct IDs in list output.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.