3种方案手把手教你解决异常couldnt install microsoft.visualcpp.redist.14

手把手教你解决异常couldnt install microsoft.visualcpp.redist.14

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.38.33130,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.38.33130,chip=x86\VCRedistInstall.ps1""" -PayloadDirectory """C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.38.33130,chip=x86""" -Architecture x86 -Logfile """C:\Users\XX\AppData\Local\Temp\dd_setup_20240119115035_255_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

解决方案1
  • 找到这个目录C:\ProgramData\Microsoft\VisualStudio\Packages
  • 直接搜索VC_redist关键词
  • 找到这个VC_redist.x64.exe文件,一般会有两个,直接全部双击安装
  • 返回VS installer 界面点击:更多—修复



解决方案2
  • 当遇到报错,点击错误信息下面的查看日志选项,打开日志文件(就像上面粘贴的那些异常信息)
  • 在错误日志中寻找安装文件的路径,类似于:C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft. visualcp . redist .14. latest,version=xx.xx.xxxxx
  • 打开此路径位置
  • 看到一个VC redist.xxx.exe
  • 安装运行它
  • 关机重启
  • 重新运行VS installer 界面点击:更多—修复

解决方案3
  • 如果以上方案均为解决,请参考这个链接查看:更多小伙伴的解决方案

  • 今天就写到这里啦~

  • 小伙伴们,( ̄ω ̄( ̄ω ̄〃 ( ̄ω ̄〃)ゝ我们明天再见啦~~

  • 大家要天天开心哦

欢迎大家指出文章需要改正之处~
学无止境,合作共赢

在这里插入图片描述

欢迎路过的小哥哥小姐姐们提出更好的意见哇~~
包含组件– Microsoft Visual Basic/C++ Runtime (x86/x64) – Microsoft C Runtime Library (2002: 7.0.9975.0) – Microsoft C Runtime Library (2003: 7.10.6119.0) – Microsoft Visual C++ Redistributables (x86/x64) ├—Microsoft Visual C++ 2005 Redistributable – 8.0.61187 ├—Microsoft Visual C++ 2008 Redistributable – 9.0.30729 ├—Microsoft Visual C++ 2010 Redistributable – 10.0.40219 ├—Microsoft Visual C++ 2012 Redistributable – 11.0.61135 ├—Microsoft Visual C++ 2013 Redistributable – 12.0.40664 ├—Microsoft Visual C++ 2015 Redistributable – 14.10.25008 ├—Microsoft Visual C++ 2005-2019 Redistributable – 14.26.28619 – Microsoft Visual Studio 2010 Tools for Office Runtime (x86/x64) Visua 安装参数 VisualCppRedist_AIO_x86_x64.exe/ai -自动静默安装所有 /aiR -自动静默卸载所有 /y -正常安装所有,有安装界面进度 /aiM -自选安装所有,安装每个版本有提取对话框,并确认询问 /aiU -自动卸载所有,卸载每个版本有提取对话框,并确认询问 /aiA -自动静默安装所有,但隐藏ARP项 /ai5 -自动静默仅安装Microsoft Visual C ++2005 /ai8 -自动静默仅安装Microsoft Visual C ++2008 /aiX -自动静默仅安装Microsoft Visual C ++2010 /ai2 -自动静默仅安装Microsoft Visual C ++2012 /ai3 -自动静默仅安装Microsoft Visual C ++2013 /ai9 -自动静默仅安装Microsoft Visual C ++2019 /aiT -自动静默仅安装Microsoft Visual Studio 2010 /aiE -自动静默仅安装额外的Microsoft Visual Basic/C++ /aiV -自动静默仅安装Microsoft C Runtime Library基础库 /aiH -系统“卸载程序”界面中“自动隐藏已经安装”项 /aiP -系统“卸载程序”界面中“手动隐藏或显示已经安装”项 /aiC -完全自动被动模式。安装所有,但UCRT KB3118401除外 /aiD -调试模式,创建VCpp_debug.log而不安装/卸载任何组件 /gm2 -用于禁用所有其它开关的提取解压对话框的可选开关
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值