When attempting to install Visual Studio 2022 (same issue when attempting to install Visual Studio 2019), once the installation gets to a certain point it reports the following:
"Sorry, something went wrong" Couldn't install Microsoft.VisualCpp.Redist.14
Here is the log:
Something went wrong with the install.
You can troubleshoot the package failures by:
- Search for solutions using the search URL below for each package failure
- Modify your selections for the affected workloads or components and then retry the installation
- Remove the product from your machine and then install again
================================================================================ Package 'Microsoft.VisualCpp.Redist.14,version=14.34.31931,chip=x86' failed to install. Search URL https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualCpp.Redist.14;PackageAction=Install;ReturnCode=1921 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.34.31931,chip=x86\VCRedistInstall.ps1""" -PayloadDirectory """C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.34.31931,chip=x86""" -Architecture x86 -Logfile """C:\Users\jbeaumont\AppData\Local\Temp\dd_setup_20221128140210_221_Microsoft.VisualCpp.Redist.14.log"""; exit $LastExitCode" Return code: 1921 Return code details: The name of the file cannot be resolved by the system. Log C:\Users\jbeaumont\AppData\Local\Temp\dd_setup_20221128140210_221_Microsoft.VisualCpp.Redist.14.log Impacted workloads .NET desktop development (Microsoft.VisualStudio.Workload.ManagedDesktop,version=17.4.33006.217,productarch=x64) ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=17.4.33006.217,productarch=x64) Impacted components .NET Debugging with WSL (Microsoft.VisualStudio.Component.WslDebugging,version=17.4.33006.217) .NET desktop development tools (Microsoft.VisualStudio.Component.ManagedDesktop.Prerequisites,version=17.4.33006.217) .NET profiling tools (Microsoft.VisualStudio.Component.DiagnosticTools,version=17.4.33006.217) ASP.NET and web development prerequisites (Microsoft.VisualStudio.Component.Web,version=17.4.33006.217) ASP.NET and web development prerequisites (Microsoft.VisualStudio.ComponentGroup.Web,version=17.4.33006.217) Azure WebJobs Tools (Component.Microsoft.VisualStudio.Web.AzureFunctions,version=17.4.33006.217) Azure WebJobs Tools (Microsoft.VisualStudio.ComponentGroup.AzureFunctions,version=17.4.33006.217) C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=17.4.33006.217) Cloud tools for web development (Microsoft.VisualStudio.ComponentGroup.Web.CloudTools,version=17.4.33006.217) Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=17.4.33006.217) Development tools for .NET (Microsoft.NetCore.Component.DevelopmentTools,version=17.4.33006.217) F# language support (Microsoft.VisualStudio.Component.FSharp,version=17.4.33006.217) F# language support for web projects (Microsoft.VisualStudio.Component.FSharp.WebTemplates,version=17.4.33006.217) Live Share (Component.Microsoft.VisualStudio.LiveShare.2022,version=1.0.5716) Managed Desktop Workload Core (Microsoft.VisualStudio.Component.ManagedDesktop.Core,version=17.4.33006.217) Razor Language Services (Component.Microsoft.VisualStudio.RazorExtension,version=17.4.33006.217) SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=17.4.33006.217) Web development tools for .NET (Microsoft.NetCore.Component.Web,version=17.4.33006.217)
2条答案
按热度按时间im9ewurl1#
以下文件夹存在问题:C:\程序数据\包缓存
似乎不知何故,此文件夹从文件夹更改为某种无法访问的符号快捷方式。它是半灰色的,文件夹图标上有一个小箭头图标,表示它是快捷方式。单击它会导致错误"系统无法解析文件"。同样,这是一个文件夹,而不是文件。
无论如何,我删除了"快捷方式",并重新创建了C:\ProgramData\Package Cache作为一个普通文件夹,现在一切都安装正常。
gudnpqoy2#
不确定什么是解锁,因为存在
如果你下载了一个文件或任何东西?
一般来说,您希望取消阻止:
这就是这个选项(右键单击,或者现在经常与win 11,右键单击和更多的选项)。非常肯定这个解锁安全功能已经有一段时间了-至少win 10,我认为即使是以前版本的windows也有这个选项。
现在,我不认为以上是你的问题,但当然这是第一件事一个人会做的时候,下载了一个文件.
事实上,对于zip文件,你真的要注意上面的内容。例如,如果我共享了一些代码--而在那个zip文件中有一些.dll文件--除非你在解压缩前解除阻止,否则它们是不起作用的。(或者在解压缩后解除阻止每个文件)。
所以,以上是你在处理任何下载文件时所需要的基本技能。正如我所说的,这不太可能是你的问题,但由于下载文件和解除阻止的基本门槛似乎让你感到困惑,如果你打算使用互联网下载文件,上述基本技能是生存指南的一部分。