Windows Server 2008 R2安装Visual C++ Redistributable 2015运行时组件设置失败0x80240017

作者:bytethinker(at)163.com,未经本人直接授权不得转载

Visual C++ Redistributable 2015 是安装运行使用 Visual Studio 2015 生成的 C++ 应用程序所需的运行时组件。

(¥2000 阿里云新用户红包https://promotion.aliyun.com/ntms/act/ambassador/sharetouser.html?userCode=y3oohsib&utm_source=y3oohsib)

一、踩坑过程

这两天在Windows Server 2008 R2 Enterprise上安装WAMP 3.0.6,根据WAMP官方文档http://forum.wampserver.com/read.php?2,138295中的安装说明,其中需要先安装Microsoft Visual C++ Redistributable 2015(VC14),但下载安装时报错“安装失败……0x80240017 - 未指定的错误”。

0x80240017.png

到处搜索尝试了一天也没解决,想偷懒走捷径没走成,还是乖乖回到微软官网上去看看 Visual C++ Redistributable 2015的详细说明吧:
https://www.microsoft.com/zh-CN/download/details.aspx?id=48145

原来,要在安装了SP1补丁包的Windows Server 2008 R2上才能安装Visual C++ Redistributable 2015组件

vcr2015.png

于是,赶紧跑去https://www.microsoft.com/zh-CN/download/details.aspx?id=5842下载SP1补丁包(windows6.1-KB976932-X64.exe)。没想到,又遇到一个坑,发现这个补丁包在安装时出现系统错误阻止安装。

继续搜索Windows Server 2008 R2 SP1补丁包的安装方法,突然发现微软官网这篇文章《在使用 Windows Update 检查更新时,系统没有提供下载 Windows 7 SP1 的选项》讲了如何安装SP1包的一些问题。
https://support.microsoft.com/zh-cn/help/2498452/you-do-not-have-the-option-of-downloading-windows-7-sp1-when-you-use-w
根据其中的方法2“先在计算机上安装更新 2454826、2534366 和 2533552,然后才能通过 Windows 更新下载 Windows 7 SP1”

二、完整安装步骤

1.打上Windows自动发现安装SP1补丁所需要的前置补丁

KB2454826补丁下载地址:https://support.microsoft.com/help/2454826
KB2534366补丁下载地址:https://support.microsoft.com/help/2534366
KB2533552补丁下载地址:https://support.microsoft.com/help/2533552

2.Windows Update检查安装SP1补丁

Windows Update检查更新并安装发现的补丁,重要更新中会包括SP1补丁。安装后系统信息中多出了“Service Pack 1”标识:


sp1.png

3.安装Microsoft Visual C++ Redistributable 2015(VC14)


最后再来安装Microsoft Visual C++ Redistributable 2015(VC14),成功了!


vcr2015-ok.png

三、心得

官方文档是王道。当你折腾很久也总是安装失败时,记得细细分析官方文档。

你可能感兴趣的:(Windows Server 2008 R2安装Visual C++ Redistributable 2015运行时组件设置失败0x80240017)