none
在安装Visual Studio Community 2015 卡在 .Net Framework 4.5 Multi-Targeting Pack RRS feed

  • 问题

  • 在安装Visual Studio Community 2015 卡在 .Net Framework 4.5 Multi-Targeting Pack,等待了很多个小时仍然没有完成

    在%TEMP%目录中查看安装日志有以下信息:

    MSI (s) (1C:7C) [11:35:33:481]: Note: 1: 2205 2:  3: Error 
    MSI (s) (1C:7C) [11:35:33:481]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 23 
    MSI (s) (1C:40) [11:35:33:482]: Resetting cached policy values
    MSI (s) (1C:40) [11:35:33:482]: Machine policy value 'Debug' is 0
    MSI (s) (1C:40) [11:35:33:482]: ******* RunEngine:
               ******* Product: {5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}
               ******* Action: 
               ******* CommandLine: **********
    MSI (s) (1C:40) [11:35:33:482]: Warning: Local cached package 'C:\Windows\Installer\2b0489.msi' is missing.
    MSI (s) (1C:40) [11:35:33:482]: User policy value 'SearchOrder' is 'nmu'
    MSI (s) (1C:40) [11:35:33:482]: User policy value 'DisableMedia' is 0
    MSI (s) (1C:40) [11:35:33:482]: Machine policy value 'AllowLockdownMedia' is 1
    MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Looking for sourcelist for product {5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}
    MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Adding {5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}; to potential sourcelist list (pcode;disk;relpath).
    MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Now checking product {5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}
    MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
    MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Trying source C:\ProgramData\Package Cache\{5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}v4.5.50709\packages\NetFxDTP\.
    MSI (s) (1C:40) [11:35:33:482]: Note: 1: 2203 2: C:\ProgramData\Package Cache\{5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}v4.5.50709\packages\NetFxDTP\NetFx45_DTP.msi 3: -2147287037 
    MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
    MSI (s) (1C:40) [11:35:33:482]: Note: 1: 1706 2: -2147483647 3: NetFx45_DTP.msi 
    MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Processing net source list.
    MSI (s) (1C:40) [11:35:33:482]: Note: 1: 1706 2: -2147483647 3: NetFx45_DTP.msi 
    MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Processing media source list.
    MSI (s) (1C:40) [11:35:33:483]: Note: 1: 2203 2:  3: -2147287037 
    MSI (s) (1C:40) [11:35:33:483]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
    MSI (s) (1C:40) [11:35:33:483]: Note: 1: 1706 2: -2147483647 3: NetFx45_DTP.msi 
    MSI (s) (1C:40) [11:35:33:483]: SOURCEMGMT: Processing URL source list.
    MSI (s) (1C:40) [11:35:33:483]: Note: 1: 1402 2: UNKNOWN\URL 3: 2 
    MSI (s) (1C:40) [11:35:33:483]: Note: 1: 1706 2: -2147483647 3: NetFx45_DTP.msi 
    MSI (s) (1C:40) [11:35:33:483]: Note: 1: 1706 2:  3: NetFx45_DTP.msi 

    2016年6月18日 3:46

答案

  • 在你的日志里我找到以下的错误信息:

    >>Error 0x800700e8: Failed to write message type to pipe.

    关于这个错误信息,你可以看下这个blog:https://blogs.msdn.microsoft.com/vsnetsetup/2013/08/02/installation-of-visual-studio-2012-update-3-fails-with-error-the-pipe-is-being-closed/

    解决办法如下:

    1. 下载VS community 2015 with update 3的ISO安装包

    2. 打开ISO安装包,在目录packages\Win81_SDK下,你应该可以找到以下两个update:

    • Windows App Certification Kit x64-x86_en-us.msp
    • Windows App Certification Kit Native Components-x64_en-us.msp

    3. 然后以管理员身份运行安装这两个update,安装完成后再以管理员身份运行VS安装程序 


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    • 已标记为答案 ChDw 2016年12月12日 8:35
    2016年7月6日 8:22
    版主

全部回复

  • 在你的日志里,我找到以下的错误信息:

    >>MSI (s) (1C:40) [11:35:33:482]: Note: 1: 2203 2: C:\ProgramData\Package Cache\{5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}v4.5.50709\packages\NetFxDTP\NetFx45_DTP.msi 3: -2147287037 
    >>MSI (s) (1C:40) [11:35:33:482]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.

    这个错误信息应该是VS installer发现在目录:C:\ProgramData\Package Cache\{5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}v4.5.50709\packages\NetFxDTP\下,文件NetFx45_DTP.msi找不到或者无法访问到这个文件, 你可以尝试一下的解决办法:

    1. 如果是这个文件NetFx45_DTP.msi确实不存在,那么建议你去下载一个VS community 2015 ISO安装包,安装包里面包括了这个文件NetFx45_DTP.msi,你可以手动拷贝复制到目录C:\ProgramData\Package Cache\{5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}v4.5.50709\packages\NetFxDTP\下。

    2. 如果这个文件已经存在,请确认下你是不是以管理员身份运行VS installer的,看看当前用户对目录C:\ProgramData\Package Cache\{5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}v4.5.50709\packages\NetFxDTP\及其文件是否有足够的权限。

    >>MSI (s) (1C:40) [11:35:33:482]: Warning: Local cached package 'C:\Windows\Installer\2b0489.msi' is missing.

    你可以以管理员身份打开CMD,然后运行命令行:sfc /scannow来检验系统文件的完整性。

    如果你是用web installer的方式安装的话,你可以试着用ISO安装包来修复或者重装。在用ISO安装前,你要验证下它的完整性。请用FCIV.exe http://blogs.msdn.com/b/heaths/archive/2011/03/25/verify-the-iso-checksum-for-visual-studio-2010-service-pack-1-before-installing.aspx来验证安装包的完整性,VS 2015 ISO文件的SHA-1值可以从https://www.visualstudio.com/downloads/visual-studio-2015-iso-sha1-vs.aspx找到对应的值。两个SHA-1值如果匹配,说明这个安装包是完好的。

    同时,有些安装前有些安装注意事项如下:

    1. Windows update更新至最新

    2. 暂时禁用杀毒软件

    3. 以管理员身份运行安装文件

    如果这个问题还是存在,我需要你帮忙收集VS的安装日志。 你可以运行工具:http://aka.ms/vscollect,然后在临时文件夹%temp%下,你可以找到vslogs.zip文件,将它上传到https://skydrive.live.com/然后分享出来,把分享地址附在这里,你也可以分享到其他公用的分享工具上。


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. <br/> Click <a href="http://support.microsoft.com/common/survey.aspx?showpage=1&scid=sw%3Ben%3B3559&theme=tech"> HERE</a> to participate the survey.

    2016年6月21日 9:33
    版主
  • 仍然安装失败,日志文件在https://1drv.ms/u/s!Ahp9YmO5NZGtgTNbojMtK48q5LTg

    在日志中提示

    MSI (s) (AC:90) [17:27:46:162]: Warning: Local cached package 'C:\Windows\Installer\2b0489.msi' is missing.
    MSI (s) (AC:90) [17:27:46:163]: User policy value 'SearchOrder' is 'nmu'
    MSI (s) (AC:90) [17:27:46:163]: User policy value 'DisableMedia' is 0
    MSI (s) (AC:90) [17:27:46:163]: Machine policy value 'AllowLockdownMedia' is 1
    MSI (s) (AC:90) [17:27:46:163]: SOURCEMGMT: Looking for sourcelist for product {5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}
    MSI (s) (AC:90) [17:27:46:163]: SOURCEMGMT: Adding {5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}; to potential sourcelist list (pcode;disk;relpath).
    MSI (s) (AC:90) [17:27:46:163]: SOURCEMGMT: Now checking product {5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}
    MSI (s) (AC:90) [17:27:46:163]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
    MSI (s) (AC:90) [17:27:46:163]: SOURCEMGMT: Trying source C:\ProgramData\Package Cache\{5CBFF3F3-2D40-34EE-BCA5-A95BC19E400D}v4.5.50709\packages\NetFxDTP\.
    MSI (s) (AC:90) [17:27:46:167]: SOURCEMGMT: Source is invalid due to invalid package code (product code doesn't match).
    MSI (s) (AC:90) [17:27:46:167]: Note: 1: 1706 2: -2147483646 3: NetFx45_DTP.msi 
    MSI (s) (AC:90) [17:27:46:167]: SOURCEMGMT: Processing net source list.
    MSI (s) (AC:90) [17:27:46:167]: Note: 1: 1706 2: -2147483647 3: NetFx45_DTP.msi 
    MSI (s) (AC:90) [17:27:46:167]: SOURCEMGMT: Processing media source list.
    MSI (s) (AC:90) [17:27:46:168]: SOURCEMGMT: Trying media source D:\.
    MSI (s) (AC:90) [17:27:46:169]: Note: 1: 2203 2: D:\NetFx45_DTP.msi 3: -2147287038 
    MSI (s) (AC:90) [17:27:46:169]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
    MSI (s) (AC:90) [17:27:46:169]: Note: 1: 1706 2: -2147483647 3: NetFx45_DTP.msi 
    MSI (s) (AC:90) [17:27:46:169]: SOURCEMGMT: Processing URL source list.
    MSI (s) (AC:90) [17:27:46:169]: Note: 1: 1402 2: UNKNOWN\URL 3: 2 
    MSI (s) (AC:90) [17:27:46:169]: Note: 1: 1706 2: -2147483647 3: NetFx45_DTP.msi 
    MSI (s) (AC:90) [17:27:46:169]: Note: 1: 1706 2:  3: NetFx45_DTP.msi 
    MSI (s) (AC:90) [17:30:36:555]: SOURCEMGMT: Failed to resolve source
    MSI (s) (AC:80) [17:30:36:557]: Note: 1: 1714 2: Microsoft .NET Framework 4.5 Multi-Targeting Pack 3: 1612 
    MSI (s) (AC:80) [17:30:36:557]: Note: 1: 2205 2:  3: Error 
    MSI (s) (AC:80) [17:30:36:557]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1714 
    MSI (s) (AC:80) [17:30:36:557]: Note: 1: 2205 2:  3: Error 
    MSI (s) (AC:80) [17:30:36:557]: Note: 1: 2228 2:  3: Error 4: SELECT `Message` FROM `Error` WHERE `Error` = 1709 
    MSI (s) (AC:80) [17:30:36:557]: Product: Microsoft .NET Framework 4.5 Multi-Targeting Pack -- Error 1714. The older version of Microsoft .NET Framework 4.5 Multi-Targeting Pack cannot be removed.  Contact your technical support group.  System Error 1612.

    我已经在本机安装过Visual Studio 2012,并已经安装有多个Multi-Targeting Pack,是否有影响

    2016年7月5日 9:35
  • 在你的日志里我找到以下的错误信息:

    >>Error 0x800700e8: Failed to write message type to pipe.

    关于这个错误信息,你可以看下这个blog:https://blogs.msdn.microsoft.com/vsnetsetup/2013/08/02/installation-of-visual-studio-2012-update-3-fails-with-error-the-pipe-is-being-closed/

    解决办法如下:

    1. 下载VS community 2015 with update 3的ISO安装包

    2. 打开ISO安装包,在目录packages\Win81_SDK下,你应该可以找到以下两个update:

    • Windows App Certification Kit x64-x86_en-us.msp
    • Windows App Certification Kit Native Components-x64_en-us.msp

    3. 然后以管理员身份运行安装这两个update,安装完成后再以管理员身份运行VS安装程序 


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place. Click HERE to participate the survey.

    • 已标记为答案 ChDw 2016年12月12日 8:35
    2016年7月6日 8:22
    版主