Continual failure to install any Windows 11 SDK on a specific machine - does not complete

GlenF-5353 15 Reputation points
2023-11-10T10:32:38.03+00:00

In this Visual Studio issue, I describe my ongoing attempts (and failures) to install the latest Windows 11 SDK, either through the VS installer or using the standalone WinSDK installer. In that issue, I was finally told to open a new issue here, since it appears not to be related to VS, but seems to be entirely an issue with the WinSDK installer.

I have been unable to install any of the Windows 11 SDK versions (10.0.22621 or 10.0.22000) on a specific machine. The installer stops when it gets to "Windows SDK for UWP C++ Apps" (roughly 80% progress through the install) and then it never completes. Eventually, after 15 or more minutes waiting, I kill it. There is no CPU activity on the winsdksetup.exe processes.

I have not had this problem on other machines, where the latest Windows 11 SDKs install fine. The machine in question is running Windows 11 Pro (Version 10.0.22621 Build 22621). It is able to install Windows 10 SDK versions, such as 10.0.20348, without problems.

Hopefully you can help me sort this out so that I can "clean" whatever is preventing the proper install on this machine... ideally without requiring a full clean reinstall of Windows.

As requested in the other (VS) issue, I can attach the WinSDK installer logs from my most recent attempt.

Thank you.

Windows for business | Windows Client for IT Pros | User experience | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Brett Bloomquist 0 Reputation points
    2024-03-05T18:11:02.83+00:00

    I just ran into this problem as well. From what I can tell it is trying to uninstall an old component of the SDK that isn't on the machine anymore and isn't handling that case well. If you are comfortable with registry edits, here is how I got past it:

    Referring to the last log you attached referencing "C:\ProgramData\Package Cache{GUID}", copy out the GUID (I just used general GUID here as it was a different one in my case and expect it will still apply here). Search for GUID in the registry and remove those references. In cases where it was a piece of data in a node, I removed the node. I expect you may only need to remove the one that relates to information about uninstallers but I removed them all. After that the install proceeded just fine.

    Also, before doing this, I would recommend running any SDK uninstalls that show up either in the control panel uninstall or apps uninstall as that may clean up some stuff for you. Hopefully this helps!

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.