为什么我尝试安装Microsoft Visual C ++ 2017(x86)安装程序时会崩溃?

时间:2018-09-12 06:57:06

标签: visual-studio install

我正在尝试安装OBS Studio,下载时遇到了此错误。

  

设置失败   一个或多个问题导致安装失败。请解决问题,然后重试安装。   有关更多信息,请参阅日志文件。

错误是

  

0x80240017未指定错误

日志文件如下所示。

[024C:1088][2018-09-12T16:41:32]i001: Burn v3.7.3813.0, Windows v6.1 (Build 7600: Service Pack 0), path: C:\Users\Kaelan\Downloads\vc2017redist_x86.exe, cmdline: ''
[024C:1088][2018-09-12T16:41:32]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\Kaelan\AppData\Local\Temp\dd_vcredist_x86_20180912164132.log'
[024C:1088][2018-09-12T16:41:32]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Kaelan\Downloads\vc2017redist_x86.exe'
[024C:1088][2018-09-12T16:41:32]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Kaelan\Downloads\'
[024C:1088][2018-09-12T16:41:32]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2017 Redistributable (x86) - 14.14.26429'
[024C:1088][2018-09-12T16:41:33]i100: Detect begin, 10 packages
[024C:1088][2018-09-12T16:41:33]i000: File search: windows_uCRT_DetectKey, did not find path: C:\Windows\system32\ucrtbase.dll
[024C:1088][2018-09-12T16:41:33]i000: File search: windows_uCRT_DetectKeyExists, did not find path: C:\Windows\system32\ucrtbase.dll
[024C:1088][2018-09-12T16:41:33]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 0
[024C:1088][2018-09-12T16:41:33]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[024C:1088][2018-09-12T16:41:33]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[024C:1088][2018-09-12T16:41:33]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[024C:1088][2018-09-12T16:41:33]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[024C:1088][2018-09-12T16:41:33]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[024C:1088][2018-09-12T16:41:33]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[024C:1088][2018-09-12T16:41:33]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[024C:1088][2018-09-12T16:41:33]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[024C:1088][2018-09-12T16:41:33]i101: Detected package: Windows81_x86, state: Absent, cached: None
[024C:1088][2018-09-12T16:41:33]i101: Detected package: Windows81_x64, state: Absent, cached: None
[024C:1088][2018-09-12T16:41:33]i101: Detected package: Windows8_x86, state: Absent, cached: None
[024C:1088][2018-09-12T16:41:33]i101: Detected package: Windows8_x64, state: Absent, cached: None
[024C:1088][2018-09-12T16:41:33]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: Complete
[024C:1088][2018-09-12T16:41:33]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: None
[024C:1088][2018-09-12T16:41:33]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
[024C:1088][2018-09-12T16:41:33]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
[024C:1088][2018-09-12T16:41:33]i101: Detected package: vcRuntimeMinimum_x86, state: Absent, cached: Complete
[024C:1088][2018-09-12T16:41:33]i101: Detected package: vcRuntimeAdditional_x86, state: Absent, cached: Complete
[024C:1088][2018-09-12T16:41:33]i052: Condition 'VersionNT >= v6.0 OR (VersionNT = v5.1 AND ServicePackLevel >= 2) OR (VersionNT = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[024C:1088][2018-09-12T16:41:33]i199: Detect complete, result: 0x0
[024C:1088][2018-09-12T16:41:34]i200: Plan begin, 10 packages, action: Install
[024C:1088][2018-09-12T16:41:34]i052: Condition 'VersionNT = v6.3 AND NOT VersionNT64' evaluates to false.
[024C:1088][2018-09-12T16:41:34]w321: Skipping dependency registration on package with no dependency providers: Windows81_x86
[024C:1088][2018-09-12T16:41:34]i052: Condition 'VersionNT = v6.3 AND VersionNT64' evaluates to false.
[024C:1088][2018-09-12T16:41:34]w321: Skipping dependency registration on package with no dependency providers: Windows81_x64
[024C:1088][2018-09-12T16:41:34]i052: Condition 'VersionNT = v6.2 AND NOT VersionNT64' evaluates to false.
[024C:1088][2018-09-12T16:41:34]w321: Skipping dependency registration on package with no dependency providers: Windows8_x86
[024C:1088][2018-09-12T16:41:34]i052: Condition 'VersionNT = v6.2 AND VersionNT64' evaluates to false.
[024C:1088][2018-09-12T16:41:34]w321: Skipping dependency registration on package with no dependency providers: Windows8_x64
[024C:1088][2018-09-12T16:41:34]i052: Condition 'VersionNT = v6.1 AND NOT VersionNT64' evaluates to true.
[024C:1088][2018-09-12T16:41:34]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x86
[024C:1088][2018-09-12T16:41:34]i052: Condition 'VersionNT = v6.1 AND VersionNT64' evaluates to false.
[024C:1088][2018-09-12T16:41:34]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x64
[024C:1088][2018-09-12T16:41:34]i052: Condition 'VersionNT = v6.0 AND NOT VersionNT64' evaluates to false.
[024C:1088][2018-09-12T16:41:34]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x86
[024C:1088][2018-09-12T16:41:34]i052: Condition 'VersionNT = v6.0 AND VersionNT64' evaluates to false.
[024C:1088][2018-09-12T16:41:34]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x64
[024C:1088][2018-09-12T16:41:34]i000: Setting string variable 'WixBundleRollbackLog_vcRuntimeMinimum_x86' to value 'C:\Users\Kaelan\AppData\Local\Temp\dd_vcredist_x86_20180912164132_001_vcRuntimeMinimum_x86_rollback.log'
[024C:1088][2018-09-12T16:41:34]i000: Setting string variable 'WixBundleLog_vcRuntimeMinimum_x86' to value 'C:\Users\Kaelan\AppData\Local\Temp\dd_vcredist_x86_20180912164132_001_vcRuntimeMinimum_x86.log'
[024C:1088][2018-09-12T16:41:34]i000: Setting string variable 'WixBundleRollbackLog_vcRuntimeAdditional_x86' to value 'C:\Users\Kaelan\AppData\Local\Temp\dd_vcredist_x86_20180912164132_002_vcRuntimeAdditional_x86_rollback.log'
[024C:1088][2018-09-12T16:41:34]i000: Setting string variable 'WixBundleLog_vcRuntimeAdditional_x86' to value 'C:\Users\Kaelan\AppData\Local\Temp\dd_vcredist_x86_20180912164132_002_vcRuntimeAdditional_x86.log'
[024C:1088][2018-09-12T16:41:34]i201: Planned package: Windows81_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[024C:1088][2018-09-12T16:41:34]i201: Planned package: Windows81_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[024C:1088][2018-09-12T16:41:34]i201: Planned package: Windows8_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[024C:1088][2018-09-12T16:41:34]i201: Planned package: Windows8_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[024C:1088][2018-09-12T16:41:34]i201: Planned package: Windows7_MSU_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: No, uncache: No, dependency: None
[024C:1088][2018-09-12T16:41:34]i201: Planned package: Windows7_MSU_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[024C:1088][2018-09-12T16:41:34]i201: Planned package: WindowsVista_MSU_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[024C:1088][2018-09-12T16:41:34]i201: Planned package: WindowsVista_MSU_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[024C:1088][2018-09-12T16:41:34]i201: Planned package: vcRuntimeMinimum_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: No, uncache: No, dependency: Register
[024C:1088][2018-09-12T16:41:34]i201: Planned package: vcRuntimeAdditional_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: No, uncache: No, dependency: Register
[024C:1088][2018-09-12T16:41:34]i299: Plan complete, result: 0x0
[024C:1088][2018-09-12T16:41:34]i300: Apply begin
[0D64:1760][2018-09-12T16:41:36]i360: Creating a system restore point.
[0D64:1760][2018-09-12T16:41:40]i361: Created a system restore point.
[0D64:1760][2018-09-12T16:41:40]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2019b6a0-8533-4a04-ac0e-b2c10bdb9841}, options: 0x7, disable resume: No
[0D64:1760][2018-09-12T16:41:40]i000: Caching bundle from: 'C:\Users\Kaelan\AppData\Local\Temp\{2019b6a0-8533-4a04-ac0e-b2c10bdb9841}\.be\VC_redist.x86.exe' to: 'C:\ProgramData\Package Cache\{2019b6a0-8533-4a04-ac0e-b2c10bdb9841}\VC_redist.x86.exe'
[0D64:1760][2018-09-12T16:41:40]i320: Registering bundle dependency provider: ,,x86,14.0,bundle, version: 14.14.26429.4
[0D64:1760][2018-09-12T16:41:40]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2019b6a0-8533-4a04-ac0e-b2c10bdb9841}, resume: Active, restart initiated: No, disable resume: No
[0D64:17E4][2018-09-12T16:41:40]i304: Verified existing payload: Windows7_MSU_x86 at path: C:\ProgramData\Package Cache\564F02E6419B9858949B0CD5A65E2C8C0944DD88\packages\Patch\x86\Windows6.1-KB2999226-x86.msu.
[0D64:17E4][2018-09-12T16:41:40]i304: Verified existing payload: vcRuntimeMinimum_x86 at path: C:\ProgramData\Package Cache\{7753EC39-3039-3629-98BE-447C5D869C09}v14.14.26429\packages\vcRuntimeMinimum_x86\vc_runtimeMinimum_x86.msi.
[0D64:17E4][2018-09-12T16:41:40]i304: Verified existing payload: cab54A5CABBE7274D8A22EB58060AAB7623 at path: C:\ProgramData\Package Cache\{7753EC39-3039-3629-98BE-447C5D869C09}v14.14.26429\packages\vcRuntimeMinimum_x86\cab1.cab.
[0D64:17E4][2018-09-12T16:41:40]i304: Verified existing payload: vcRuntimeAdditional_x86 at path: C:\ProgramData\Package Cache\{6F0267F3-7467-350D-A8C8-33B72E3658D8}v14.14.26429\packages\vcRuntimeAdditional_x86\vc_runtimeAdditional_x86.msi.
[0D64:17E4][2018-09-12T16:41:40]i304: Verified existing payload: cabB3E1576D1FEFBB979E13B1A5379E0B16 at path: C:\ProgramData\Package Cache\{6F0267F3-7467-350D-A8C8-33B72E3658D8}v14.14.26429\packages\vcRuntimeAdditional_x86\cab1.cab.
[0D64:1760][2018-09-12T16:41:40]i301: Applying execute package: Windows7_MSU_x86, action: Install, path: C:\ProgramData\Package Cache\564F02E6419B9858949B0CD5A65E2C8C0944DD88\packages\Patch\x86\Windows6.1-KB2999226-x86.msu, arguments: '"C:\Windows\system32\wusa.exe" "C:\ProgramData\Package Cache\564F02E6419B9858949B0CD5A65E2C8C0944DD88\packages\Patch\x86\Windows6.1-KB2999226-x86.msu" /quiet /norestart'
[0D64:1760][2018-09-12T16:41:41]e000: Error 0x80240017: Failed to execute MSU package.
[024C:1088][2018-09-12T16:41:41]e000: Error 0x80240017: Failed to configure per-machine MSU package.
[024C:1088][2018-09-12T16:41:41]i319: Applied execute package: Windows7_MSU_x86, result: 0x80240017, restart: None
[024C:1088][2018-09-12T16:41:41]e000: Error 0x80240017: Failed to execute MSU package.
[0D64:1760][2018-09-12T16:41:41]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2019b6a0-8533-4a04-ac0e-b2c10bdb9841}, resume: None, restart: None, disable resume: No
[0D64:1760][2018-09-12T16:41:41]i330: Removed bundle dependency provider: ,,x86,14.0,bundle
[0D64:1760][2018-09-12T16:41:41]i352: Removing cached bundle: {2019b6a0-8533-4a04-ac0e-b2c10bdb9841}, from path: C:\ProgramData\Package Cache\{2019b6a0-8533-4a04-ac0e-b2c10bdb9841}\
[0D64:1760][2018-09-12T16:41:41]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2019b6a0-8533-4a04-ac0e-b2c10bdb9841}, resume: None, restart initiated: No, disable resume: No
[024C:1088][2018-09-12T16:41:42]i399: Apply complete, result: 0x80240017, restart: None, ba requested restart:  No

有人可以帮我吗?

操作系统:Windows 7 PRO

状态:好

在VM上:是

位:32(x86)

2 个答案:

答案 0 :(得分:0)

已禁用Windows Update? :我想知道您是否已在该虚拟机上禁用Windows Update?失败的是 Windows6.1-KB2999226-x86.msu -Windows中Universal C Runtime的更新。在安装之前,此Windows Update可能具有其他Windows Update作为先决条件。

运行交互式&检查日志 :您可以通过交互式运行 Windows6.1-KB2999226-x86.msu 进行测试,以查看是否存在任何交互式错误消息,或检查系统的事件日志(我首先要做)以查看是否有具体的错误消息。

反编译设置 :要反编译此WiX Burn创建的 setup.exe ,您需要使用WiX的 {{ 1}} 工具(how-to towards bottom in section 4 here)。相反,使用just download Windows6.1-KB2999226-x86.msu from Microsoft可能更快,然后尝试在虚拟机上交互式地运行它。

其他测试 :如果没有成功,则有很多选择可以尝试。我想创建一个新的本地管理员帐户,并通过该帐户运行安装程序,这是我的第一个测试。这是为了排除配置文件问题和类似的废话。我认为在这种情况下不太可能,但这是一个有用的小测试。可能还有很多其他问题,例如策略和安全软件干扰等...

答案 1 :(得分:0)

请参阅日志文件,似乎操作系统无法安装所需的更新 Window6.1-KB2999223-x86.msu 。我们可以尝试将此更新提取到文件夹中并执行以下cmdlet。

您可以在下面找到Windows8.1-KB2999226-x64.msu。

C:\ ProgramData \ Package Cache \ 564F02E6419B9858949B0CD5A65E2C8C0944DD88 \ packages \ Patch \ x86 \ Windows6.1-KB2999226-x86.msu 将此文件复制到您喜欢的文件夹,然后

  • 在其中创建一个文件夹XXXX,并从中执行以下命令 管理员命令提示符

    wusa.exe Windows8.1-KB2999226-x64.msu / extract:XXXX

    DISM.exe /在线/添加包 /PackagePath:XXXX\Windows8.1-KB2999226-x64.cab

    vc_redist.x64.exe / repair last命令无需运行。只需执行 exe。

有关更多详细信息,请检查this similar issue