今天vcredist_x86_2017.exe的编译环境一直无法在windows2012系统安装成功,失败如下:
[0B1C:0E08][2019-10-21T21:22:04]i001: Burn v3.10.4.4718, Windows v6.3 (Build 9600: Service Pack 0), path: C:\Windows\Temp\{23066E51-4668-4301-89DF-951CA46F60D8}\.cr\vcredist_x86_2017.exe
[0B1C:0E08][2019-10-21T21:22:04]i009: Command Line: '-burn.clean.room=C:\Users\Administrator\Desktop\vcredist_x86_2017.exe -burn.filehandle.attached=316 -burn.filehandle.self=324'
[0B1C:0E08][2019-10-21T21:22:04]i000: Setting string variable 'WixBundleOriginalSource' to value 'C:\Users\Administrator\Desktop\vcredist_x86_2017.exe'
[0B1C:0E08][2019-10-21T21:22:04]i000: Setting string variable 'WixBundleOriginalSourceFolder' to value 'C:\Users\Administrator\Desktop\'
[0B1C:0E08][2019-10-21T21:22:04]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_vcredist_x86_20191021212204.log'
[0B1C:0E08][2019-10-21T21:22:04]i000: Setting string variable 'WixBundleName' to value 'Microsoft Visual C++ 2017 Redistributable (x86) - 14.16.27033'
[0B1C:0E08][2019-10-21T21:22:04]i000: Setting string variable 'WixBundleManufacturer' to value 'Microsoft Corporation'
[0B1C:098C][2019-10-21T21:22:04]i000: Setting version variable 'WixBundleFileVersion' to value '14.16.27033.0'
[0B1C:0E08][2019-10-21T21:22:04]i100: Detect begin, 10 packages
[0B1C:0E08][2019-10-21T21:22:04]i000: File search: windows_uCRT_DetectKey, did not find path: C:\Windows\system32\ucrtbase.dll
[0B1C:0E08][2019-10-21T21:22:04]i000: File search: windows_uCRT_DetectKeyExists, did not find path: C:\Windows\system32\ucrtbase.dll
[0B1C:0E08][2019-10-21T21:22:04]i000: Setting numeric variable 'windows_uCRT_DetectKeyExists' to value 0
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition '(VersionNT = v6.3 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition '(VersionNT = v6.3 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition '(VersionNT = v6.2 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition '(VersionNT = v6.2 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition '(VersionNT = v6.1 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition '(VersionNT = v6.1 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition '(VersionNT = v6.0 AND NOT VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition '(VersionNT = v6.0 AND VersionNT64) AND (windows_uCRT_DetectKeyExists AND windows_uCRT_DetectKey >= v10.0.10240.0)' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: Windows81_x86, state: Absent, cached: None
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: Windows81_x64, state: Absent, cached: Complete
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: Windows8_x86, state: Absent, cached: None
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: Windows8_x64, state: Absent, cached: None
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: Windows7_MSU_x86, state: Absent, cached: None
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: Windows7_MSU_x64, state: Absent, cached: None
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: WindowsVista_MSU_x86, state: Absent, cached: None
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: WindowsVista_MSU_x64, state: Absent, cached: None
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: vcRuntimeMinimum_x86, state: Absent, cached: Complete
[0B1C:0E08][2019-10-21T21:22:04]i101: Detected package: vcRuntimeAdditional_x86, state: Absent, cached: Complete
[0B1C:0E08][2019-10-21T21:22:04]i052: Condition 'VersionNT >= v6.0 OR (VersionNT = v5.1 AND ServicePackLevel >= 2) OR (VersionNT = v5.2 AND ServicePackLevel >= 1)' evaluates to true.
[0B1C:0E08][2019-10-21T21:22:04]i199: Detect complete, result: 0x0
[0B1C:098C][2019-10-21T21:22:11]i000: Setting numeric variable 'EulaAcceptCheckbox' to value 1
[0B1C:0E08][2019-10-21T21:22:11]i200: Plan begin, 10 packages, action: Install
[0B1C:0E08][2019-10-21T21:22:11]i052: Condition 'VersionNT = v6.3 AND NOT VersionNT64' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:11]w321: Skipping dependency registration on package with no dependency providers: Windows81_x86
[0B1C:0E08][2019-10-21T21:22:11]i052: Condition 'VersionNT = v6.3 AND VersionNT64' evaluates to true.
[0B1C:0E08][2019-10-21T21:22:11]w321: Skipping dependency registration on package with no dependency providers: Windows81_x64
[0B1C:0E08][2019-10-21T21:22:11]i052: Condition 'VersionNT = v6.2 AND NOT VersionNT64' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:11]w321: Skipping dependency registration on package with no dependency providers: Windows8_x86
[0B1C:0E08][2019-10-21T21:22:11]i052: Condition 'VersionNT = v6.2 AND VersionNT64' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:11]w321: Skipping dependency registration on package with no dependency providers: Windows8_x64
[0B1C:0E08][2019-10-21T21:22:11]i052: Condition 'VersionNT = v6.1 AND NOT VersionNT64' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:11]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x86
[0B1C:0E08][2019-10-21T21:22:11]i052: Condition 'VersionNT = v6.1 AND VersionNT64' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:11]w321: Skipping dependency registration on package with no dependency providers: Windows7_MSU_x64
[0B1C:0E08][2019-10-21T21:22:11]i052: Condition 'VersionNT = v6.0 AND NOT VersionNT64' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:11]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x86
[0B1C:0E08][2019-10-21T21:22:11]i052: Condition 'VersionNT = v6.0 AND VersionNT64' evaluates to false.
[0B1C:0E08][2019-10-21T21:22:11]w321: Skipping dependency registration on package with no dependency providers: WindowsVista_MSU_x64
[0B1C:0E08][2019-10-21T21:22:11]i000: Setting string variable 'WixBundleRollbackLog_vcRuntimeMinimum_x86' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_vcredist_x86_20191021212204_001_vcRuntimeMinimum_x86_rollback.log'
[0B1C:0E08][2019-10-21T21:22:11]i000: Setting string variable 'WixBundleLog_vcRuntimeMinimum_x86' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_vcredist_x86_20191021212204_001_vcRuntimeMinimum_x86.log'
[0B1C:0E08][2019-10-21T21:22:11]i000: Setting string variable 'WixBundleRollbackLog_vcRuntimeAdditional_x86' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_vcredist_x86_20191021212204_002_vcRuntimeAdditional_x86_rollback.log'
[0B1C:0E08][2019-10-21T21:22:11]i000: Setting string variable 'WixBundleLog_vcRuntimeAdditional_x86' to value 'C:\Users\ADMINI~1\AppData\Local\Temp\dd_vcredist_x86_20191021212204_002_vcRuntimeAdditional_x86.log'
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: Windows81_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: Windows81_x64, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: No, uncache: No, dependency: None
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: Windows8_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: Windows8_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: Windows7_MSU_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: Windows7_MSU_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: WindowsVista_MSU_x86, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: WindowsVista_MSU_x64, state: Absent, default requested: Absent, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: vcRuntimeMinimum_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: No, uncache: No, dependency: Register
[0B1C:0E08][2019-10-21T21:22:11]i201: Planned package: vcRuntimeAdditional_x86, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: No, uncache: No, dependency: Register
[0B1C:0E08][2019-10-21T21:22:11]i299: Plan complete, result: 0x0
[0B1C:0E08][2019-10-21T21:22:11]i300: Apply begin
[0B1C:0E08][2019-10-21T21:22:11]i010: Launching elevated engine process.
[0B1C:0E08][2019-10-21T21:22:11]i011: Launched elevated engine process.
[0B1C:0E08][2019-10-21T21:22:11]i012: Connected to elevated engine.
[0E30:0AD4][2019-10-21T21:22:11]i358: Pausing automatic updates.
[0E30:0AD4][2019-10-21T21:22:11]i359: Paused automatic updates.
[0E30:0AD4][2019-10-21T21:22:11]i360: Creating a system restore point.
[0E30:0AD4][2019-10-21T21:22:11]i362: System restore disabled, system restore point not created.
[0E30:0AD4][2019-10-21T21:22:11]i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{624ba875-fdfc-4efa-9c66-b170dfebc3ec}, options: 0x7, disable resume: No
[0E30:0AD4][2019-10-21T21:22:11]i000: Caching bundle from: 'C:\Windows\Temp\{6A6FADF9-5967-427B-8766-75A25DBD9FB3}\.be\VC_redist.x86.exe' to: 'C:\ProgramData\Package Cache\{624ba875-fdfc-4efa-9c66-b170dfebc3ec}\VC_redist.x86.exe'
[0E30:0AD4][2019-10-21T21:22:11]i320: Registering bundle dependency provider: VC,redist.x86,x86,14.16,bundle, version: 14.16.27033.0
[0E30:0AD4][2019-10-21T21:22:11]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{624ba875-fdfc-4efa-9c66-b170dfebc3ec}, resume: Active, restart initiated: No, disable resume: No
[0E30:0ABC][2019-10-21T21:22:11]i304: Verified existing payload: Windows81_x64 at path: C:\ProgramData\Package Cache\3ACBF3890FC9C8A6F3D2155ECF106028E5F55164\packages\Patch\x64\Windows8.1-KB2999226-x64.msu.
[0E30:0ABC][2019-10-21T21:22:11]i304: Verified existing payload: vcRuntimeMinimum_x86 at path: C:\ProgramData\Package Cache\{D5AEE36E-4771-4F65-BDB6-8C59077BFBE4}v14.16.27033\packages\vcRuntimeMinimum_x86\vc_runtimeMinimum_x86.msi.
[0E30:0ABC][2019-10-21T21:22:11]i304: Verified existing payload: cab54A5CABBE7274D8A22EB58060AAB7623 at path: C:\ProgramData\Package Cache\{D5AEE36E-4771-4F65-BDB6-8C59077BFBE4}v14.16.27033\packages\vcRuntimeMinimum_x86\cab1.cab.
[0E30:0ABC][2019-10-21T21:22:11]i304: Verified existing payload: vcRuntimeAdditional_x86 at path: C:\ProgramData\Package Cache\{88D1025F-45D0-45C6-9EDB-379C2EE07AD7}v14.16.27033\packages\vcRuntimeAdditional_x86\vc_runtimeAdditional_x86.msi.
[0E30:0ABC][2019-10-21T21:22:11]i304: Verified existing payload: cabB3E1576D1FEFBB979E13B1A5379E0B16 at path: C:\ProgramData\Package Cache\{88D1025F-45D0-45C6-9EDB-379C2EE07AD7}v14.16.27033\packages\vcRuntimeAdditional_x86\cab1.cab.
[0E30:0AD4][2019-10-21T21:22:11]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'
[0E30:0AD4][2019-10-21T21:22:11]e000: Error 0x80240017: Failed to execute MSU package.
[0B1C:0E08][2019-10-21T21:22:11]e000: Error 0x80240017: Failed to configure per-machine MSU package.
[0B1C:0E08][2019-10-21T21:22:11]i319: Applied execute package: Windows81_x64, result: 0x80240017, restart: None
[0B1C:0E08][2019-10-21T21:22:11]e000: Error 0x80240017: Failed to execute MSU package.
[0E30:0AD4][2019-10-21T21:22:11]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{624ba875-fdfc-4efa-9c66-b170dfebc3ec}, resume: None, restart: None, disable resume: No
[0E30:0AD4][2019-10-21T21:22:11]i330: Removed bundle dependency provider: VC,redist.x86,x86,14.16,bundle
[0E30:0AD4][2019-10-21T21:22:11]i352: Removing cached bundle: {624ba875-fdfc-4efa-9c66-b170dfebc3ec}, from path: C:\ProgramData\Package Cache\{624ba875-fdfc-4efa-9c66-b170dfebc3ec}\
[0E30:0AD4][2019-10-21T21:22:11]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{624ba875-fdfc-4efa-9c66-b170dfebc3ec}, resume: None, restart initiated: No, disable resume: No
[0B1C:0E08][2019-10-21T21:22:12]i399: Apply complete, result: 0x80240017, restart: None, ba requested restart: No
通过查看,好像明白了,可能是安装补丁包Windows8.1-KB2999226-x64.msu失败导致,我又下载补丁包,安装一直失败
后来发现需要通过如下方法才行:
把补丁包放在D:\update\目录下
windows键+X 选择 命令提示符(管理员) 一定要是管理员
打开cmd 分别执行下面两句。红色部分就是自己的更新程序了。其他安装同理 例如Windows8.1-KB2919442-x64.msu 等
1 expand –F:* D:\update\Windows8.1-KB2999226-x64.msu D:\update\
2 dism.exe /online /Add-Package /PackagePath:D:\update\Windows8.1-KB2999226-x64.cab
截图如下:
再次安装vs2017的环境,果然成功了
但是当我运行netcore的时候又不行了,如下图:
我猜测,可能没有把64位的库,拷贝到sysy32下面,拷贝以下试一下
拷贝到如下
可以成功运行: