VS 2022: Couldn't install Microsoft.VisualCpp.Redist.14

hunterlan 36 Reputation points
2022-06-07T12:42:06.947+00:00

I wanted to install Desktop Development C++, but during installing, I get the error: "Couldn't install Microsoft.VisualCpp.Redist.14". I tried to repair, launched install and uninstall repair tools, worked with registry, uninstall Microsoft Visual C++, re-install visual studio (installed preview version), but everything doesn't help.

Also, Administration and SYSTEM has admin rights for C:\Temp.

Log file show this:
Something went wrong with the install.

You can troubleshoot the package failures by:

1. Search for solutions using the search URL below for each package failure
2. Modify your selections for the affected workloads or components and then retry the installation
3. Remove the product from your machine and then install again

If the issue has already been reported on the Developer Community, you can find solutions or workarounds there. If the issue has not been reported, we encourage you to create a new issue so that other developers will be able to find solutions or workarounds. You can create a new issue from within the Visual Studio Installer in the upper-right hand corner using the "Provide feedback" button.

================================================================================

Package 'Microsoft.VisualCpp.Redist.14,version=14.32.31327,chip=x86' failed to install.
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 "& """C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.32.31327,chip=x86\VCRedistInstall.ps1""" -PayloadDirectory """C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.32.31327,chip=x86""" -Architecture x86 -Logfile """C:\Users\Konstantin Sharykin\AppData\Local\Temp\dd_setup_20220607142820_035_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\Konstantin Sharykin\AppData\Local\Temp\dd_setup_20220607142820_035_Microsoft.VisualCpp.Redist.14.log
Impacted workloads
.NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=17.3.32505.122)
.NET Multi-platform App UI development (Microsoft.VisualStudio.Workload.NetCrossPlat,version=17.3.32519.5111)
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=17.3.32505.122)
Azure development (Microsoft.VisualStudio.Workload.Azure,version=17.3.32505.122)
Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=17.3.32505.122)
Impacted components
.NET Debugging with WSL (Microsoft.VisualStudio.Component.WslDebugging,version=17.3.32505.122)
.NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=17.3.32505.122)
.NET MAUI (Microsoft.VisualStudio.ComponentGroup.Maui.All,version=17.3.32505.122)
.NET profiling tools (Microsoft.VisualStudio.Component.DiagnosticTools,version=17.3.32505.122)
ASP.NET and web development prerequisites (Microsoft.VisualStudio.Component.Web,version=17.3.32505.122)
ASP.NET and web development prerequisites (Microsoft.VisualStudio.ComponentGroup.Web,version=17.3.32505.122)
Azure Cloud Services core tools (Microsoft.VisualStudio.Component.Azure.Waverton,version=17.3.32505.122)
Azure Cloud Services tools (Microsoft.VisualStudio.ComponentGroup.Azure.CloudServices,version=17.3.32505.122)
Azure development prerequisites (Microsoft.VisualStudio.ComponentGroup.Azure.Prerequisites,version=17.3.32505.122)
Azure Resource Manager core tools (Microsoft.VisualStudio.Component.Azure.ResourceManager.Tools,version=17.3.32505.122)
Azure Resource Manager tools (Microsoft.VisualStudio.ComponentGroup.Azure.ResourceManager.Tools,version=17.3.32505.122)
Azure WebJobs Tools (Component.Microsoft.VisualStudio.Web.AzureFunctions,version=17.3.32505.122)
Azure WebJobs Tools (Microsoft.VisualStudio.ComponentGroup.AzureFunctions,version=17.3.32505.122)
Blazor support for .NET MAUI Applications (Microsoft.VisualStudio.ComponentGroup.Maui.Blazor,version=17.3.32505.122)
C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=17.3.32505.122)
C++ 2022 Redistributable Update (Microsoft.VisualStudio.Component.VC.Redist.14.Latest,version=17.3.32505.122)
C++ CMake tools for Windows (Microsoft.VisualStudio.Component.VC.CMake.Project,version=17.3.32505.122)
C++ core desktop features (Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core,version=17.3.32505.122)
C++ profiling tools (Microsoft.VisualStudio.Component.VC.DiagnosticTools,version=17.3.32505.122)
Cloud tools for web development (Microsoft.VisualStudio.ComponentGroup.Web.CloudTools,version=17.3.32505.122)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=17.3.32505.122)
Development tools for .NET (Microsoft.NetCore.Component.DevelopmentTools,version=17.3.32505.122)
F# language support (Microsoft.VisualStudio.Component.FSharp,version=17.3.32505.122)
F# language support for web projects (Microsoft.VisualStudio.Component.FSharp.WebTemplates,version=17.3.32505.122)
Graphics debugger and GPU profiler for DirectX (Microsoft.VisualStudio.Component.Graphics.Tools,version=17.3.32505.122)
Live Share (Component.Microsoft.VisualStudio.LiveShare.2022,version=1.0.5545)
Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=17.3.32505.122)
MSVC v143 - VS 2022 C++ x64/x86 build tools (Latest) (Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=17.3.32505.122)
Razor Language Services (Component.Microsoft.VisualStudio.RazorExtension,version=17.3.32505.122)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=17.3.32505.122)
Web development tools for .NET (Microsoft.NetCore.Component.Web,version=17.3.32505.122)
Xamarin (Component.Xamarin,version=17.3.32519.111)

Version OS: Windows 11 22000.708

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
{count} votes

9 answers

Sort by: Most helpful
  1. Karl Echano 126 Reputation points
    2022-08-23T06:52:52.6+00:00

    Hi , I also encountered the same issue and this is what I did to make it work

    Download and Install Microsoft.VisualCpp.Redist14 here
    https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
    I installed both x86 and x64 version on my windows machine

    Run the "Visual Studio Installer" app
    In Installed Tab > Visual Studio Professional 2022 > click on More then Select Repair
    wait for the installation to finish then the installer will prompt you to restart your computer

    ^_^

    25 people found this answer helpful.

  2. Marko Radivojević 46 Reputation points
    2022-08-12T16:06:39.04+00:00

    Hi.

    This might help.
    I was installing Desktop development with C++ via Visual Studio Installer. On the error popup with message "Couldn't install Microsoft.VisualCpp.Redist.14.Latest" there is View Logs option.
    Error log should state: "Error opening installation log file. Verify that the specified log file location exists and that you can write to it."
    Installation log file location should be C:\Users[user]\AppData\Local\Temp. Give everyone rights to Temp folder: right click on the Temp folder -> Properties -> Security tab -> Edit -> Add -> type Everyone -> click on Check Names -> OK -> check Full control -> Apply -> OK -> OK.
    Error log contains name of the installation log and it should be something like this: dd_setup_xxxxxxxxxxxxxx_001_Microsoft.VisualCpp.Redist.14.Latest.log. xxxxxxxxxxxxxx part should represent date and time ,for example 20220812175204. In the Temp folder find the given installation log file and check if Everyone has full control over it, similarly as previously described. It should be so, but if not, set it yourself.
    I think each installation try has its own installation log, with specific date and time in installation log's name and Everyone doesn't have full control over that new log, as it is created after full control is given to everyone, but I am not sure. Therefore, failed installation's step should be continued.
    Error log contains one more path. That is path to installation file. The path should be something like: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14.Latest,version=xx.xx.xxxxx,chip=x86. Open that location. There should be an application named something like VC_redist.x86. Run it.

    After this, I've run Desktop development with C++ via Visual Studio Installer and it completed successfully.

    9 people found this answer helpful.

  3. Chrisna Andanu 5 Reputation points
    2023-03-11T04:42:03.7666667+00:00

    try change installer in

    C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14.Latest,version=14.34.31938,chip=x64

    C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14.Latest,version=14.34.31938,chip=x86

    with new installer from

    https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

    its work for me

    1 person found this answer helpful.

  4. Kenlly Acosta 5 Reputation points
    2023-11-16T19:40:07.6766667+00:00

    I installed both x86 and x64 from this link. Problem resolved.

    https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022

    I hope this helps.

    1 person found this answer helpful.
    0 comments No comments

  5. Tianyu Sun-MSFT 31,246 Reputation points Microsoft Vendor
    2022-06-08T02:15:45.78+00:00

    Hi @hunterlan ,

    Welcome to Microsoft Q&A forum.

    Please go to this path: %temp%, and check if this dd_setup_XXXXXX_XXX_Microsoft.VisualCpp.Redist.14.log file exists. If it exist, please right-click it > Properties > switch to Security tab > click Edit > make sure the Write/Modify… permissions have been assigned to (all)users > Apply > OK.

    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.

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.