C++ 缺少 vc_runtimeminimum_x86.msi 并且安装将不起作用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/43512889/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Missing vc_runtimeminimum_x86.msi and installation won't work
提问by Khatrimm
I'm currently going through the installation process for Visual Studio 2017 Community Edition to use with C++. Halfway through installation, I get an error stating
我目前正在完成 Visual Studio 2017 Community Edition 与 C++ 一起使用的安装过程。安装到一半时,我收到一个错误说明
"The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or enter an alternate path to a folder containing the installation package '
vc_runtimeMinimum_x86.msi
' in the box below."
“您尝试使用的功能位于不可用的网络资源上。单击“确定”重试,或
vc_runtimeMinimum_x86.msi
在下面的框中输入包含安装包“ ”的文件夹的备用路径。
If I hit cancel, the procedure continues and at the end tells me that the setup has failed. It gives me the error logs attached at the bottom of this post.
如果我点击取消,程序会继续,最后告诉我设置失败。它给了我附加在这篇文章底部的错误日志。
Also, I have uploaded the complete logs on the Microsoft Visual Studio developer help forum here.
另外,我已上载于微软的Visual Studio开发人员的帮助论坛的完整记录在这里。
I'd like to be able to solve this problem without having to do a re-installation of the OS. So far, I've tried /sfc scannow
, repairing through the Visual Studio Installer, and reinstalling the C++ redistributables, but all too no avail.
我希望能够解决这个问题,而无需重新安装操作系统。到目前为止,我已经尝试过/sfc scannow
,通过 Visual Studio 安装程序进行修复,并重新安装 C++ 可再发行组件,但都无济于事。
Any help would be greatly appreciated. Thank you.
任何帮助将不胜感激。谢谢你。
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.
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.
采纳答案by Sara Liu - MSFT
Go to Control Panel--Programs and Features, uninstall the Visual C++ 2015 Redistribute items.
转到控制面板--程序和功能,卸载 Visual C++ 2015 Redistribute 项。
After that, run the tool: https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed. Re-run the VS 2017 installer as administrator, then click the icon besides 'Launch' and choose 'Repair' to repair the VS 2017.
之后,运行该工具:https: //support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed。以管理员身份重新运行VS 2017安装程序,然后单击“启动”旁边的图标并选择“修复”以修复VS 2017。
回答by Jun
I ran into this problem as well on a recent build of Win 10 + trying to install latest VS Community. When I entered this state, things appeared to be super broken. Here's the sequence of events that I took which finally worked:
我在最近的 Win 10 + 版本中也遇到了这个问题,试图安装最新的 VS 社区。当我进入这种状态时,事情似乎超级破碎。这是我采取的一系列事件,最终奏效:
- In the installed, select to "download all packages and then install"
- Attempt installation
- See the popup
- With the popup still up, go here: https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removedand download the tool
- Open the tool and then select "Uninstall" on the page it says "do you need help installing or uninstalling"
- On the next page with the list, select Microsoft Visual C++ 2015 (whatever) and hit next to "Try Uninstall"
- Repeat steps 5 - 6 until I didn't see any "Microsoft Visual C++ 2015" left in the list. Note that the popup is still showing.
- Close the popup
- Pause the install and Resume it.
- I didn't see the pop up again and it appears to have installed correctly.
- 在安装中,选择“下载所有包然后安装”
- 尝试安装
- 查看弹出窗口
- 在弹出窗口仍然存在的情况下,请转到此处:https: //support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed并下载该工具
- 打开该工具,然后在显示“您需要帮助安装或卸载”的页面上选择“卸载”
- 在列表的下一页上,选择 Microsoft Visual C++ 2015 (whatever) 并点击旁边的“尝试卸载”
- 重复步骤 5 - 6,直到我在列表中看不到任何“Microsoft Visual C++ 2015”。请注意,弹出窗口仍在显示。
- 关闭弹出窗口
- 暂停安装并恢复它。
- 我没有再次看到弹出窗口,它似乎已正确安装。
If you're coming here a year after the solution was marked without any resolution, try that and see if it works around the issue for you.
如果您在解决方案标记为没有任何解决方案一年后来到这里,请尝试一下,看看它是否适合您解决问题。
Here are some other things I tried which didn't work for me. If the above didn't work for you, maybe try some of the following which I collected through some searching:
以下是我尝试过的其他一些对我不起作用的事情。如果以上方法对您不起作用,请尝试我通过搜索收集的以下一些方法:
- Going to C:\Program Data\Package Cache, searching for the msi package, giving the installer the literal path to what I found. Installer complains "wrong version"
- Using https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removedafter the install failed and then repairing (same error).
- Uninstalling VS 2015 packages after install failed and repairing (same error).
- Ignoring the error. When I did this, VS didn't have any templates installed and devenv /installvstemplates didn't solve this.
- 转到 C:\Program Data\Package Cache,搜索 msi 包,为安装程序提供我找到的内容的文字路径。安装程序抱怨“版本错误”
- 安装失败后使用https://support.microsoft.com/en-us/help/17588/fix-problems-that-block-programs-from-being-installed-or-removed然后修复(相同错误)。
- 安装失败并修复后卸载 VS 2015 软件包(相同错误)。
- 忽略错误。当我这样做时,VS 没有安装任何模板,并且 devenv /installvstemplates 没有解决这个问题。
回答by Hatsune Miku
Try installing all the things from here: https://support.microsoft.com/ms-my/help/2977003/the-latest-supported-visual-c-downloads
尝试从这里安装所有东西:https: //support.microsoft.com/ms-my/help/2977003/the-latest-supported-visual-c-downloads
Not sure if you just have to install the x86 version or all of them. recommend that you install all of them but remember to uninstall the ones which you already have.
不确定您是否只需要安装 x86 版本或所有版本。建议您安装所有这些,但请记住卸载您已有的。
回答by Nils
This tool from Microsoft (which was mentioned by others here) worked for me, after I had been searching for an answer for days:
在我一直在寻找答案之后,微软的这个工具(这里的其他人提到过)对我有用:
You have to choose the "I have problems uninstalling" and search for your "C++"-components (in your case the 2017 ones).
您必须选择“我在卸载时遇到问题”并搜索您的“C++”组件(在您的情况下是 2017 年的)。
There are usually the "Minimum runtime" and the "Additional runtime"-components. After I've uninstalled both of them with this tool, I could just install a programm that uses these runtimes (for example Visual Studio) and it would download and install the missing features, after that, everything workes perfect for me.
通常有“最小运行时间”和“附加运行时间”组件。在我用这个工具卸载它们之后,我可以安装一个使用这些运行时的程序(例如 Visual Studio),它会下载并安装缺少的功能,之后,一切对我来说都很完美。
回答by MiroSulin
for me was simple to fix this problem.
对我来说解决这个问题很简单。
- Uninstall all visual c++ with Revo Uninstaller Pro
- Use MPVCI tool. link(https://www.majorgeeks.com/files/details/multipack_visual_c_installer.html)
- enjoy it. for me it works.
- 使用 Revo Uninstaller Pro 卸载所有 Visual C++
- 使用 MPVCI 工具。链接(https://www.majorgeeks.com/files/details/multipack_visual_c_installer.html)
- 好好享受。对我来说它有效。