【问题标题】:Missing vc_runtimeminimum_x86.msi and installation won't work缺少 vc_runtimeminimum_x86.msi 并且安装不起作用
【发布时间】:2017-04-20 07:26:44
【问题描述】:

我目前正在安装 Visual Studio 2017 社区版以用于 C++。安装到一半,出现错误提示

“您尝试使用的功能位于不可用的网络资源上。单击“确定”重试,​​或输入包含安装包“vc_runtimeMinimum_x86.msi”的文件夹的备用路径在下面的框中。”

如果我点击取消,程序会继续,最后告诉我设置失败。它给了我附在这篇文章底部的错误日志。

另外,我已将完整的日志上传到 Microsoft Visual Studio 开发者帮助论坛here

我希望无需重新安装操作系统即可解决此问题。到目前为止,我已经尝试过/sfc scannow,通过 Visual Studio 安装程序进行修复,并重新安装了 C++ 可再发行组件,但都无济于事。

任何帮助将不胜感激。谢谢。

The product failed to install the listed workloads and components due to one or more package failures. Incomplete workloads Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26403.0) Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26403.0) Visual Studio extension development (Microsoft.VisualStudio.Workload.VisualStudioExtension,version=15.0.26208.0) Incomplete components C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=15.0.26208.0) C++ profiling tools (Microsoft.VisualStudio.Component.VC.DiagnosticTools,version=15.0.26208.0) Graphics debugger and GPU profiler for DirectX (Microsoft.VisualStudio.Component.Graphics.Tools,version=15.0.26208.0) JavaScript and TypeScript language support (Microsoft.VisualStudio.Component.JavaScript.TypeScript,version=15.0.26208.0) Profiling tools (Microsoft.VisualStudio.Component.DiagnosticTools,version=15.0.26208.0) Static analysis tools (Microsoft.VisualStudio.Component.Static.Analysis.Tools,version=15.0.26208.0) Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26403.0) Universal Windows Platform tools for Cordova (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.26403.0) Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.26403.0) VC++ 2017 v141 toolset (x86,x64) (Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=15.0.26208.0) Visual Studio extension development prerequisites (Microsoft.VisualStudio.ComponentGroup.VisualStudioExtension.Prerequisites,version=15.0.26208.0) Visual Studio SDK (Microsoft.VisualStudio.Component.VSSDK,version=15.0.26208.0) You can search for solutions using the information below, modify your selections for the above workloads and components and retry the installation, or remove the product from your machine. Following is a collection of individual package failures that led to the incomplete workloads and components above. To search for existing reports of these specific problems, please copy and paste the URL from each package failure into a web browser. If the issue has already been reported, you can find solutions or workarounds there. If the issue has not been reported, you can create a new issue where other people will be able to find solutions or workarounds. Package 'Microsoft.VisualCpp.Redist.14,version=14.10.25008,chip=x86' failed to install. Search URL: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualCpp.Redist.14;PackageAction=Install;ReturnCode=1603 Impacted workloads Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26403.0) Universal Windows Platform development (Microsoft.VisualStudio.Workload.Universal,version=15.0.26403.0) Visual Studio extension development (Microsoft.VisualStudio.Workload.VisualStudioExtension,version=15.0.26208.0) Impacted components C# and Visual Basic (Microsoft.VisualStudio.Component.Roslyn.LanguageServices,version=15.0.26208.0) C++ profiling tools (Microsoft.VisualStudio.Component.VC.DiagnosticTools,version=15.0.26208.0) Graphics debugger and GPU profiler for DirectX (Microsoft.VisualStudio.Component.Graphics.Tools,version=15.0.26208.0) JavaScript and TypeScript language support (Microsoft.VisualStudio.Component.JavaScript.TypeScript,version=15.0.26208.0) Profiling tools (Microsoft.VisualStudio.Component.DiagnosticTools,version=15.0.26208.0) Static analysis tools (Microsoft.VisualStudio.Component.Static.Analysis.Tools,version=15.0.26208.0) Universal Windows Platform tools (Microsoft.VisualStudio.Component.UWP.Support,version=15.0.26403.0) Universal Windows Platform tools for Cordova (Microsoft.VisualStudio.ComponentGroup.UWP.Cordova,version=15.0.26403.0) Universal Windows Platform tools for Xamarin (Microsoft.VisualStudio.ComponentGroup.UWP.Xamarin,version=15.0.26403.0) VC++ 2017 v141 toolset (x86,x64) (Microsoft.VisualStudio.Component.VC.Tools.x86.x64,version=15.0.26208.0) Visual Studio extension development prerequisites (Microsoft.VisualStudio.ComponentGroup.VisualStudioExtension.Prerequisites,version=15.0.26208.0) Visual Studio SDK (Microsoft.VisualStudio.Component.VSSDK,version=15.0.26208.0) Log C:\Users\Owner\AppData\Local\Temp\dd_setup_20170412231725_117_Microsoft.VisualCpp.Redist.14.log Details Command executed: "C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.VisualCpp.Redist.14,version=14.10.25008,chip=x86\VC_redist.x86.exe" /q /norestart /log "C:\Users\Owner\AppData\Local\Temp\dd_setup_20170412231725_117_Microsoft.VisualCpp.Redist.14.log" Return code: 1603 Return code details: Fatal error during installation.

【问题讨论】:

  • 嗨 Khatrimm,您的计算机上安装了 Visual C++ redistribute 2015 吗?如果是这样,请尝试卸载它,运行工具:support.microsoft.com/en-us/help/17588/…。之后,重新运行 VS 2017 安装程序,右键单击“启动”旁边的图标并选择“修改”或“修复”。
  • @Sara-MSFT 我卸载了它并使用该工具完全清理并删除了通过该程序显示的所有 2015 C++ 可再发行组件(有 4 个)。重新运行 VS 2017 安装程序并修复安装后,该程序不再出现。太感谢了!!!我花了很多时间试图解决这个问题,现在它不再发生了。谢谢!
  • 您好 Khatrimm,很高兴听到我的解决方案适用于您的问题。我将此解决方法添加为回复,您能否将其标记为答案,它将帮助其他社区成员更轻松地搜索此信息:)
  • 为了让安装工作,我不得不在卸载模式下多次运行此工具,以卸载其列表中的所有 Microsoft Visual C++ 2015 条目(例如调试运行时、附加运行时、最小运行时) .这些条目没有出现在控制面板的程序和功能中。

标签: c++ visual-studio installation windows-installer visual-studio-2017


【解决方案1】:

我在最近构建的 Win 10 + 尝试安装最新的 VS 社区时也遇到了这个问题。当我进入这种状态时,事情似乎超级破碎。这是我采取的一系列事件最终奏效了:

  1. 在安装中,选择“下载所有包再安装”
  2. 尝试安装
  3. 查看弹出窗口
  4. 在弹出窗口仍然存在的情况下,转到此处:https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed 并下载该工具
  5. 打开工具,然后在显示“您需要安装或卸载帮助”的页面上选择“卸载”
  6. 在包含列表的下一页上,选择 Microsoft Visual C++ 2015(随便),然后点击“尝试卸载”旁边的
  7. 重复步骤 5 - 6,直到我在列表中看不到任何“Microsoft Visual C++ 2015”。请注意,弹出窗口仍在显示。
  8. 关闭弹出窗口
  9. 暂停安装并继续安装。
  10. 我没有再次看到弹出窗口,它似乎已正确安装。

如果您在解决方案被标记为没有任何解决方案一年后来到这里,请尝试一下,看看它是否适合您。

以下是我尝试过的其他一些对我不起作用的方法。如果以上方法不适合您,不妨试试我通过搜索收集到的以下一些方法:

【讨论】:

  • 感谢详细步骤。尝试安装 VS 2017 时,这在 Win 7 中对我有用
  • 对于多年后仍然来到这里的其他人,Visual C++ 可再发行文件在 2015、2017 和 2019 年共享。安装 2019 时您需要清理所有这三个文件。
  • 谢谢!也适用于 C++ 2015-2019 !
  • 也为我工作。我还必须删除所有 Microsoft Visual C++ 的东西。
  • 谢谢!解决了我的问题 - 刚刚删除了 Visual C++ 2015* 的所有实例
【解决方案2】:

转到控制面板--程序和功能,卸载 Visual C++ 2015 Redistribute 项。

之后,运行该工具:https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed。以管理员身份重新运行 VS 2017 安装程序,然后单击“启动”旁边的图标并选择“修复”以修复 VS 2017。

【讨论】:

  • 投反对票,因为您零提及使用此工具做什么。此外,这个工具似乎有点愚蠢。如果您单击“安装”(旨在帮助您安装某些东西),它似乎会显示一个已经已安装程序的列表。如果问题是您无法安装它,则不确定这有多大用处。我什至尝试在问题安装程序正在运行时运行该工具(因为此时问题 VS 版本显示在添加/删除程序中),但该工具仍未在列表中显示它。所以作为一个帮助你安装选定程序的工具,它似乎完全没用。
  • 抱歉,错字,我的意思是问题 VC 版本在安装程序运行并显示对话框时显示在添加/删除程序中。 i.imgur.com/oYqbwRZ.png
  • 由于下载链接已失效,这里有一些工作镜像链接:m.majorgeeks.com/files/details/…
【解决方案3】:

尝试从这里安装所有东西:https://support.microsoft.com/ms-my/help/2977003/the-latest-supported-visual-c-downloads

不确定是只需要安装 x86 版本还是全部安装。建议您安装所有这些,但记得卸载您已经拥有的。

【讨论】:

  • 欢迎来到 Stack Overflow!虽然这在理论上可以回答问题,it would be preferable 在此处包含答案的基本部分,并提供链接以供参考。
【解决方案4】:

在我寻找答案好几天之后,这个来自微软的工具(这里的其他人提到过)对我有用:

https://support.microsoft.com/en-us/help/17588/windows-fix-problems-that-block-programs-being-installed-or-removed

您必须选择“我在卸载时遇到问题”并搜索您的“C++”组件(在您的情况下是 2017 年的组件)。

通常有“最小运行时间”和“附加运行时间”组件。在我用这个工具卸载它们之后,我可以只安装一个使用这些运行时的程序(例如 Visual Studio),它会下载并安装缺少的功能,之后,一切对我来说都很完美。

【讨论】:

    【解决方案5】:

    对我来说解决这个问题很简单。

    1. 使用 Revo Uninstaller Pro 卸载所有 Visual c++
    2. 使用 MPVCI 工具。链接(https://www.majorgeeks.com/files/details/multipack_visual_c_installer.html)
    3. 尽情享受吧。对我来说它有效。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-02-07
      相关资源
      最近更新 更多