Windows Server 2012 R2 安装 Visual C++ Redistributable (VC_redist.x64) 失败 0x80240017 错误解决办法
PHP8 需要 Visual C++ Redistributable for Visual Studio 2019 ,但怎么都装不上,有个 0x80240017 - 未指定的错误。
看日志 Windows8.1-KB2999226-x64.msu 好像有补丁安装失败了,网上找到一篇解决办法:https://blog.51cto.com/u_12701820/3032471
能成功安装 VC,但是 PHP8 无法运行。
[099C:098C][2024-01-27T14:47:42]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9057ceb3-ab14-4d3a-aa99-38d2d660e604}, resume: Active, restart initiated: No, disable resume: No [099C:0B00][2024-01-27T14:47:42]i304: Verified existing payload: Windows81_x64 at path: C:\ProgramData\Package Cache\3ACBF3890FC9C8A6F3D2155ECF106028E5F55164\packages\Patch\x64\Windows8.1-KB2999226-x64.msu. [099C:0B00][2024-01-27T14:47:42]i304: Verified existing payload: vcRuntimeMinimum_x64 at path: C:\ProgramData\Package Cache\{0F03096E-F81F-48D0-AEE0-9F8513CD883F}v14.29.30153\packages\vcRuntimeMinimum_amd64\vc_runtimeMinimum_x64.msi. [099C:0B00][2024-01-27T14:47:42]i304: Verified existing payload: cab5046A8AB272BF37297BB7928664C9503 at path: C:\ProgramData\Package Cache\{0F03096E-F81F-48D0-AEE0-9F8513CD883F}v14.29.30153\packages\vcRuntimeMinimum_amd64\cab1.cab. [099C:0B00][2024-01-27T14:47:42]i304: Verified existing payload: vcRuntimeAdditional_x64 at path: C:\ProgramData\Package Cache\{4EF122F4-F7DA-4F5B-A7A1-3FE7AE34850D}v14.29.30153\packages\vcRuntimeAdditional_amd64\vc_runtimeAdditional_x64.msi. [099C:0B00][2024-01-27T14:47:42]i304: Verified existing payload: cab2C04DDC374BD96EB5C8EB8208F2C7C92 at path: C:\ProgramData\Package Cache\{4EF122F4-F7DA-4F5B-A7A1-3FE7AE34850D}v14.29.30153\packages\vcRuntimeAdditional_amd64\cab1.cab. [099C:098C][2024-01-27T14:47:42]i301: Applying execute package: Windows81_x64, action: Install, path: C:\ProgramData\Package Cache\3ACBF3890FC9C8A6F3D2155ECF106028E5F55164\packages\Patch\x64\Windows8.1-KB2999226-x64.msu, arguments: '"C:\Windows\SysNative\wusa.exe" "C:\ProgramData\Package Cache\3ACBF3890FC9C8A6F3D2155ECF106028E5F55164\packages\Patch\x64\Windows8.1-KB2999226-x64.msu" /quiet /norestart' [099C:098C][2024-01-27T14:47:43]e000: Error 0x80240017: Failed to execute MSU package. [09B0:0978][2024-01-27T14:47:43]e000: Error 0x80240017: Failed to configure per-machine MSU package. [09B0:0978][2024-01-27T14:47:43]i319: Applied execute package: Windows81_x64, result: 0x80240017, restart: None [09B0:0978][2024-01-27T14:47:43]e000: Error 0x80240017: Failed to execute MSU package. [099C:098C][2024-01-27T14:47:43]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9057ceb3-ab14-4d3a-aa99-38d2d660e604}, resume: None, restart: None, disable resume: No [099C:098C][2024-01-27T14:47:43]i330: Removed bundle dependency provider: VC,redist.x64,amd64,14.29,bundle [099C:098C][2024-01-27T14:47:43]i352: Removing cached bundle: {9057ceb3-ab14-4d3a-aa99-38d2d660e604}, from path: C:\ProgramData\Package Cache\{9057ceb3-ab14-4d3a-aa99-38d2d660e604}\ [099C:098C][2024-01-27T14:47:43]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9057ceb3-ab14-4d3a-aa99-38d2d660e604}, resume: None, restart initiated: No, disable resume: No [09B0:0978][2024-01-27T14:47:43]i399: Apply complete, result: 0x80240017, restart: None, ba requested restart: No
成功解决问题的是这一篇:https://blog.csdn.net/neochan1108/article/details/78084073
先安装补丁 KB2919442,Windows Server 2012 R2 更新程序 (KB2919442)
再安装补丁 KB2919355,Windows Server 2012 R2 更新 (KB2919355)
KB2919355 官方给的安装说明:
先 以管理员身份运行 clearcompressionflag.exe,这个没有界面,后台运行的
再 安装 Windows8.1-KB2919355-x64.msu
我装完 Windows8.1-KB2919355-x64.msu 之后,再装后面几个提示已近安装过了,但 PHP 能正常运行了