winget error message: "Installer failed with exit code: 2148734208".

Faramarz Falsafi Nejad 0 Reputation points
2025-11-27T05:28:29.7366667+00:00

I need Visual Studio for x86 Assembly programming but it (2022/2026 Community edition) refuses to get installed on my Windows 10 machine ("Sorry, something went wrong. The install operation failed."); I researched and tried many things but nothing worked so I decided to only install the build tools via "winget" and got the error message: "Installer failed with exit code: 2148734208".

winget install Microsoft.VisualStudio.2022.BuildTools --force --override "--passive --wait --add Microsoft.VisualStudio.Workload.VCTools;includeRecommended"

Found Visual Studio BuildTools 2022 [Microsoft.VisualStudio.2022.BuildTools] Version 17.14.21

This application is licensed to you by its owner.

Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.

Downloading https://download.visualstudio.microsoft.com/download/pr/3014ff35-1082-4da0-ba77-9d3664b7c38a/52367ab60e0f223d3f1d9c3406130e07ab711d7d48f922a407ccdb45b62937dd/vs_BuildTools.exe

██████████████████████████████ 4.25 MB / 4.25 MB

Successfully verified installer hash

Starting package install...

Installer failed with exit code: 2148734208

What's the problem? What does the error code mean? Is there an offline installer for C++ Developer tools (I need MASM and the linker at the very least)?

P.S:

  1. I ran both the Visual Studio Installer (in my previous attempts to install Visual Studio) and the CMD (that I used the "winget" command in it) but it didn't work.
  2. I previously had a Visual Studio 2022 Community that didn't worked properly so I thoroughly deleted it before a trying a fresh install of Visual Studio 2026 Community (I tried repairing VS2022C but also got the "Sorry..." message).
  3. The installer for the build tools also give me the "Sorry..." message and that's why I resorted to "winget".
Developer technologies | Visual Studio | Setup
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-11-27T05:28:40.8166667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error code 2148734208 during the installation of Visual Studio or its components typically indicates an issue with the installation process, which can stem from various factors such as corrupted installation files, insufficient permissions, or conflicts with existing software. Here are some steps you can take to troubleshoot and resolve the issue:

    1. Run as Administrator: Ensure that you are running the installer with administrative privileges. Right-click on the installer and select "Run as administrator".
    2. Check for Existing Installations: If you have any previous versions of Visual Studio or build tools installed, they might be causing conflicts. Consider uninstalling them completely before trying again.
    3. Use the Visual Studio Installer: Instead of using winget, try downloading the Visual Studio Installer directly from the official Microsoft website. This can sometimes resolve issues that occur with package managers.
    4. Repair Installation: If you have a partially installed version, you can try repairing it through the Visual Studio Installer.
    5. Check Logs: Look for installation logs that might provide more detailed error messages. These logs can often be found in the %TEMP% directory.
    6. Offline Installer: Yes, there is an offline installer for Visual Studio Build Tools. You can download the Visual Studio Build Tools from the official Microsoft site, and during the installation process, you can select the components you need, including the C++ tools and MASM.

    If these steps do not resolve the issue, consider checking the Microsoft documentation or support forums for more specific guidance related to your error code.


    References:

    0 comments No comments

  2. Varsha Dundigalla(INFOSYS LIMITED) 3,725 Reputation points Microsoft External Staff
    2025-11-28T06:48:47.3166667+00:00

    Thank you for reaching out.

    If you see Installer failed with exit code: 2148734208 while installing Visual Studio or Build Tools, it means the setup engine couldn’t complete the installation. This usually happens because of leftover files from previous installs, missing Windows components, or permission issues. It’s not a Winget problem the error comes from the Visual Studio installer itself.

    • Run as Administrator Right-click the installer and choose Run as administrator.
    • Remove old installs Uninstall any previous Visual Studio versions or build tools to avoid conflicts.
    • Use Visual Studio Installer directly Download the installer from https://visualstudio.microsoft.com/downloads/ instead of relying on Winget.
    • Repair if partially installed If Visual Studio is partially installed, open Visual Studio Installer and choose Repair.
    • Check logs for details Logs are in the %TEMP% folder. They can help identify the exact cause.
    • Offline installer for Build Tools If online setup fails, create an offline layout using: vs_buildtools.exe --layout <folder> --lang en-US Then run the installer from that folder and select Desktop development with C++ (includes MASM and linker).

    If these steps don’t fix it, check

    Install Visual Studio

    Please let us know if you require any further assistance, we’re happy to help.

    If you found this information useful, kindly mark this as "Accept Answer".


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.