How to deal with failing to install Win11SDK_10.0.22621 and Win11SDK_WindowsPerformanceToolkit by VS 2022

xuanjiu 0 Reputation points
2024-03-04T10:48:13.39+00:00

I encountered a problem while installing VS 2022 today. I was unable to install Win11SDK_10.0.22621 and Win11SDK_WindowsPerformanceToolkit.

My error log is as follows:

Failed to install package “Win11SDK_10.0.22621,version=10.0.22621.5,productarch=neutral”. Search URL https://aka.ms/VSSetupErrorReports?q=PackageId=Win11SDK_10.0.22621;PackageAction=Install;ReturnCode=1000 Details Executed command: "F:\VS\ProgramData\Microsoft\VisualStudio\Packages\Win11SDK_10.0.22621,version=10.0.22621.5,productarch=neutral\winsdkinstaller.exe" SetupExe=winsdksetup.exe LogFile="C:\Users\syx\AppData\Local\Temp\dd_setup_20240304143641_434_Win11SDK_10.0.22621.log" SetupLogFolder=windowssdk CeipSetting="on" ProgramFilesOrSharedDriveSdkPath="F:\Windows Kits\10" SetupParameters="/features OptionId.AvrfExternal OptionId.UWPManaged OptionId.WindowsSoftwareLogoToolkit OptionId.SigningTools OptionId.UWPLocalized OptionId.UWPCPP OptionId.DesktopCPPx64 OptionId.DesktopCPPx86 OptionID.DesktopCPPARM OptionID.DesktopCPPARM64 OptionId.MSIInstallTools /quiet /norestart" Return code: 1000 Detailed information of return code: Unknown error (0x000003e8) Log C:\Users\syx\AppData\Local\Temp\dd_setup_20240304143641_434_Win11SDK_10.0.22621.log Affected workload Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=17.9.34511.75,productarch=x64) Affected component Windows 11 SDK (10.0.22621.0) (Microsoft.VisualStudio.Component.Windows11SDK.22621,version=17.9.34511.75)


Failed to install package “Win11SDK_WindowsPerformanceToolkit,version=10.0.22621.2,productarch=neutral”. Search URL https://aka.ms/VSSetupErrorReports?q=PackageId=Win11SDK_WindowsPerformanceToolkit;PackageAction=Install;ReturnCode=1000 Details Executed command: "F:\VS\ProgramData\Microsoft\VisualStudio\Packages\Win11SDK_WindowsPerformanceToolkit,version=10.0.22621.2,productarch=neutral\winsdkinstaller.exe" SetupExe=winsdksetup.exe LogFile="C:\Users\syx\AppData\Local\Temp\dd_setup_20240304143641_467_Win11SDK_WindowsPerformanceToolkit.log" SetupLogFolder=windowssdk CeipSetting="on" ProgramFilesOrSharedDriveSdkPath="F:\Windows Kits\10" SetupParameters="/features OptionId.WindowsPerformanceToolkit /quiet /norestart" Return code: 1000 Detailed information of return code: Unknown error (0x000003e8) Log C:\Users\syx\AppData\Local\Temp\dd_setup_20240304143641_467_Win11SDK_WindowsPerformanceToolkit.log Affected workload Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=17.9.34511.75,productarch=x64) Affected component C++ Build Insights (Microsoft.VisualStudio.Component.CppBuildInsights,version=17.9.34511.75) Windows Performance Toolkit (Microsoft.VisualStudio.Component.Windows11Sdk.WindowsPerformanceToolkit,version=17.9.34511.75)

I suspect it's because there were remnants left from uninstalling an older version of VS. How should I resolve this issue? Thank you!

Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,050 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    2024-03-05T09:49:57.2233333+00:00

    Hello @xuanjiu ,

    Welcome to Microsoft Q&A forum.

    Please try to remove following two packages(folders) and repair VS. The two folders(ProgramData is a hidden folder, you may need to let it display by checking the View, hidden items option in Windows File Explorer) are

    F:\VS\ProgramData\Microsoft\VisualStudio\Pacakges\Win11SDK_10.0.22621,version=10.0.22621.5,productarch=neutral and

    F:\VS\ProgramData\Microsoft\VisualStudio\Pacakges\Win11SDK_WindowsPerformanceToolkit,version=10.0.22621.2,productarch=neutral.

    If it doesn’t work, please try to remove following folders and reinstall VS 2022.

    C:\Program Files (x86)\Microsoft Visual Studio

    C:\Program Files\Microsoft Visual Studio

    %programdata%\Microsoft\visualstudio\packages

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

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