How to fix Microsoft.VisualCpp.Redist.14,version=14.38.33130,chip=x86' failed to install

Guillaume Lavoie 0 Reputation points
2024-01-24T21:47:08.16+00:00
Hello Microsoft team, 

I'm trying to install Microsoft Visual Studio 2022 and keep encountering an error; 
Package 'Microsoft.VisualCpp.Redist.14,version=14.38.33130,chip=x86' failed to install.


Here is the log that I keep seeing whenever I repeat the installation; 
Search URL
        https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualCpp.Redist.14;PackageAction=Install;ReturnCode=-2147023274
    Details
        Command executed: "c:\windows\syswow64\windowspowershell\v1.0\powershell.exe" -NoLogo -NoProfile -Noninteractive -ExecutionPolicy Unrestricted -InputFormat None -Command "& """T:\Microsoft Visual Studio\Microsoft.VisualCpp.Redist.14,version=14.38.33130,chip=x86\VCRedistInstall.ps1""" -PayloadDirectory """T:\Microsoft Visual Studio\Microsoft.VisualCpp.Redist.14,version=14.38.33130,chip=x86""" -Architecture x86 -Logfile """C:\Users\Tajna Rasha\AppData\Local\Temp\dd_setup_20240117192420_247_Microsoft.VisualCpp.Redist.14.log"""; exit $LastExitCode"
        Return code: -2147023274
        Return code details: Error opening installation log file. Verify that the specified log file location exists and that you can write to it.
Log
        C:\Users\Tajna Rasha\AppData\Local\Temp\dd_setup_20240117192420_247_Microsoft.VisualCpp.Redist.14.log
    Impacted workloads
        .NET Multi-platform App UI development (Microsoft.VisualStudio.Workload.NetCrossPlat,version=17.8.34129.139)
        Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=17.8.34316.72,productarch=x64)
        Game development with C++ (Microsoft.VisualStudio.Workload.NativeGame,version=17.8.34316.72,productarch=x64)
        Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=17.8.34129.139,productarch=x64)
    Impacted components
        .NET MAUI (Microsoft.VisualStudio.ComponentGroup.Maui.All,version=17.8.34129.139)
        .NET MAUI development tools (Microsoft.VisualStudio.ComponentGroup.Maui.Shared,version=17.8.34129.139)
        .NET profiling tools (Microsoft.VisualStudio.Component.DiagnosticTools,version=17.8.34129.139)
        Blazor support for .NET MAUI Applications (Microsoft.VisualStudio.ComponentGroup.Maui.Blazor,version=17.8.34129.139)
        C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=17.8.34129.139)
        C++ 2022 Redistributable Update (Microsoft.VisualStudio.Component.VC.Redist.14.Latest,version=17.8.34129.139)
C++ CMake tools for Windows (Microsoft.VisualStudio.Component.VC.CMake.Project,version=17.8.34129.139)
        C++ core desktop features (Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core,version=17.8.34129.139,productarch=x64)
        C++ profiling tools (Microsoft.VisualStudio.Component.VC.DiagnosticTools,version=17.8.34129.139)
        Development tools for .NET (Microsoft.NetCore.Component.DevelopmentTools,version=17.8.34129.139)
        F# language support (Microsoft.VisualStudio.Component.FSharp,version=17.8.34129.139)
        Graphics debugger and GPU profiler for DirectX (Microsoft.VisualStudio.Component.Graphics.Tools,version=17.8.34129.139,productarch=x64)
        Live Share (Component.Microsoft.VisualStudio.LiveShare.2022,version=1.0.5886)
        MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest) (Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=17.8.34129.139)
        Universal Windows Platform tools (Microsoft.VisualStudio.ComponentGroup.UWP.Support,version=17.8.34129.139)
        Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=17.8.34129.139)


I reached out to your support team earlier, and they told me to take the following steps; 
Step 1: Please close all VS windows and open CMD as admin. to open CMD press “Windows key” + “R” a search bar will appear and you need to type “CMD” on it. 
Step 2: Please run this command: cd C:\Program Files (x86)\Microsoft Visual Studio\Installer 
Step 3: After that one is run, please run this other one: InstallCleanup.exe -f 
Step 4: Please close CMD and delete the installer folder (C:\Program Files (x86)\Microsoft Visual Studio\Installer) from the file explorer. 
Step 5: Please download a new VS installer, from here:

Upon reaching step 3, the executable looped forever and did not progress as intended. This is when the support team member gave me this link to write a ticket with you. Please advise as I require this for my work. 

Thank you and have a great day! 

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.
972 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 48,656 Reputation points
    2024-01-24T22:15:48.7033333+00:00

    Based upon the error message it seems to indicate that it isn't able to create the log file to record the install. Things that come to mind here:

    • Is your C:\ full?
    • Are you running as an Administrator?
    • Do you have another install running or pending reboot?
    • Go to the log file it is complaining about c:\users\<username>... and, if it exists, then delete it.
    • Try running the installer for C++ Redistributable v14 manually and see if it works.

    After that rerun the installer.

    I'm making some assumptions here:

    • You're running Windows 10 or higher
    • Your file system is NTFS
    0 comments No comments

  2. Tianyu Sun-MSFT 27,431 Reputation points Microsoft Vendor
    2024-01-25T06:49:37.58+00:00

    Hello @Guillaume Lavoie,

    Welcome to Microsoft Q&A forum.

    Please try to download and install Visual C++ Redistributable package manually from here: Latest Supported Visual C++ Redistributable Downloads.

    If it fails to install, try to check the new error message shows in the pop-up window. If new error message mentions an old version of this same redistributable package, try to uninstall that old version by using the troubleshooter tool, and then reinstall the redistributable package(14.38.33130).

    Other things you may need to check:

    1. Full permissions on your machine.
    2. No applications like antivirus software block you from installing VS.
    3. Try to also install the 64-bit version, sometimes this works.
    4. Try the workaround/solution from this ticket: PackageId:Microsoft.VisualCpp.Redist.14;PackageAction:Install;ReturnCode:-2147023274.

    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.