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!