Visual Studio社区2013 Update 4安装失败

时间:2014-12-22 06:36:30

标签: visual-studio visual-studio-2013 installation install windows-installer

我已从 visualstudio.com 下载了 Visual Studio社区2013 Update 4 iso 文件,以便在 Windows 8.1 x64 上安装VS,我已经验证了iso文件的SHA1校验和,结果是正确的。

问题是设置在应用时停止:Visual Studio核心功能然后失败并用

完成

-Error图标和“Visual Studio核心功能-ENU安装期间的致命错误”

- 三条消息上的警告图标:“Microsoft Visual C ++ 2013 32位编译器 - ENU资源包失败”,“Microsoft Visual C ++ 2013编译器 - ENU资源包失败”和“Microsoft Visual C ++ 2013 x64本机编译器 - ENU资源包裹失败“

到目前为止,我已经完成了以下工作: -

1)在安装之前禁用防病毒,防火墙和防恶意软件并以管理员身份运行安装。

2)在安装之前清除%temp%,C:\ ProgramData \ Package Cache和AppData \ Local \ Temp文件夹。

3)使用.Net Framewrok设置验证实用程序验证所有已安装的.Net框架。

4)使用系统文件检查工具修复https://support.microsoft.com/KB/929833中描述的丢失或损坏的系统文件,结果是“Windows资源保护未发现任何完整性违规”。

在日志中发现了这些错误(ERROR来自 vs_professionalcore.msi ): -

应用程序数据\本地\ TEMP \ dd_vs_community_20141221193705.log

[0B88:12C4][2014-12-21T19:45:57]i000: MUX:  Installation size in bytes for package: vs_professionalcore MaxAppDrive: 0  MaxSysDrive: 1821361272  AppDrive: 0  SysDrive: 1335334008
[0B88:12C4][2014-12-21T19:45:57]i000: MUX:  Return Code:0x0 Msi Messages:0 Result Detail:RollbackCleanup Restart:None
[0B88:12C4][2014-12-21T19:45:57]i000: MUX:  Reset execution Result
[0B88:12C4][2014-12-21T19:45:57]i000: MUX:  Reset Result
[0B88:12C4][2014-12-21T19:45:57]i319: Applied execute package: vs_professionalcore, result: 0x0, restart: None
[0E44:1184][2014-12-21T19:45:57]i325: Registering dependency: {96a8b90c-0a91-4e76-ab34-730c23923d11} on package provider: Microsoft.VS.professionalcore,v12, package: vs_professionalcore
[0B88:12C4][2014-12-21T19:45:57]i000: MUX:  ExecutePackageBegin PackageId: vs_professionalcoreres
[0E44:1184][2014-12-21T19:45:57]i301: Applying execute package: vs_professionalcoreres, action: Install, path: C:\ProgramData\Package Cache\{E9674444-9491-3961-873C-017D8912185E}v12.0.21005\packages\professionallp\vs_professionalcoreres.msi, arguments: ' ARPSYSTEMCOMPONENT="1" MSIFASTINSTALL="7" VSEXTUI="1" INSTALLINGBUNDLE="community" PATCH="C:\ProgramData\Package Cache\{9BA8E822-8889-4826-82CF-41DFE04129EA}\packages\kb2829760\kb2829760-enu.msp;C:\ProgramData\Package Cache\{B7C61168-6AE1-4AF3-BA3D-48D7369C41F2}\packages\kb2829760\kb2829760v2-enu.msp;C:\ProgramData\Package Cache\{ABEF08E8-5C61-42C4-AD64-FC5412586B89}\packages\kb2829760\kb2829760v3-enu.msp"'
[0B88:12C4][2014-12-21T19:47:56]i000: MUX:  ExecuteError: Package (vs_professionalcoreres) failed: Error Message Id: 2902 ErrorMessage: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2902.
[0E44:1184][2014-12-21T19:48:47]e000: Error 0x80070643: Failed to install MSI package.
[0E44:1184][2014-12-21T19:48:47]e000: Error 0x80070643: Failed to execute MSI package.
[0B88:12C4][2014-12-21T19:48:47]e000: Error 0x80070643: Failed to configure per-machine MSI package.
[0B88:12C4][2014-12-21T19:48:47]i000: MUX:  Installation size in bytes for package: vs_professionalcoreres MaxAppDrive: 0  MaxSysDrive: 686784512  AppDrive: 0  SysDrive: 31719424
[0B88:12C4][2014-12-21T19:48:47]i000: MUX:  Return Code:0x80070643 Msi Messages:2902 Result Detail:0 Restart:None
[0B88:12C4][2014-12-21T19:48:47]i000: MUX:  Set Result: Return Code=-2147023293 (0x80070643), Error Message=2902, Result Detail=, Vital=True, Package Action=Install, Package Id=vs_professionalcoreres
[0B88:12C4][2014-12-21T19:48:47]i319: Applied execute package: vs_professionalcoreres, result: 0x80070643, restart: None
[0B88:12C4][2014-12-21T19:48:47]e000: Error 0x80070643: Failed to execute MSI package.
[0B88:12C4][2014-12-21T19:48:47]i000: MUX:  ExecutePackageBegin PackageId: vs_professionalcoreres
[0E44:1184][2014-12-21T19:48:47]i318: Skipped rollback of package: vs_professionalcoreres, action: Uninstall, already: Absent
[0B88:12C4][2014-12-21T19:48:47]i000: MUX:  Installation size in bytes for package: vs_professionalcoreres MaxAppDrive: 0  MaxSysDrive: 0  AppDrive: 0  SysDrive: 0
[0B88:12C4][2014-12-21T19:48:47]i000: MUX:  Return Code:0x0 Msi Messages:2902 Result Detail:0 Restart:None
[0B88:12C4][2014-12-21T19:48:47]i000: MUX:  Reset execution Result
[0B88:12C4][2014-12-21T19:48:47]i000: MUX:  Reset Result

此日志也在AppData \ Local \ Temp \ _dd_vs_community_20141221193705_101_vs_professionalcoreres.log

MSI (s) (54:F0) [19:47:58:111]: Note: 1: 2265 2:  3: -2147287035
MSI (s) (54:F0) [19:47:58:112]: User policy value 'DisableRollback' is 0
MSI (s) (54:F0) [19:47:58:112]: Machine policy value 'DisableRollback' is 0
Action ended 19:47:58: InstallFinalize. Return value 3.

我也在同一个文件中找到了这些

MSI (s) (54:F0) [19:48:46:815]: Note: 1: 2318 2:  
MSI (s) (54:F0) [19:48:46:820]: No System Restore sequence number for this installation.
MSI (s) (54:F0) [19:48:46:821]: Unlocking Server
MSI (s) (54:F0) [19:48:46:873]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Action ended 19:48:46: INSTALL. Return value 3.

是什么导致了这个问题?以及如何解决它?,从日志错误是ERROR 2902我已经搜索了它,我没有找到任何解决方案。

Installation Errors Messages

4 个答案:

答案 0 :(得分:2)

我对这个问题的解决方案的第一个猜测是将用户访问控制设置为最低值。我发现它对我有用。

答案 1 :(得分:1)

问题可能来自安装后发生的更新。

您可以尝试检查 kb2829760 安装在您的帐户中 C:\ProgramData\Package Cache目录(查看http://support.microsoft.com/en-us/kb/2829760)。

在我的系统中,我发现C:\ProgramData\Package Cache\07D2D6FD53E7EDE1FB612619A11BBCD5530A3E56\packages\vsupdate_kb2829760\vsupdate_kb2829760.exe我使用/Uninstall /Force标记运行(我的问题是清除 Visual Studio 的孤立组件已经通过appwiz.cpl删除了没有显示在更新列表中)。

无论如何,我建议在C:\ProgramData\Package Cache进行深入检查。例如,如果您查找 vs dir /s /b *vs*) 您可以检查所有 GUID 和听起来像是可能的候选清理路径。

答案 2 :(得分:0)

更新: -

我在AppData \ Local \ dd_vs_community_20141222103227_097_vc_compilercore86res.log中找到了这些

MSI (s) (EC:D0) [10:33:13:227]: Executing op: ActionStart(Name=CreateShortcuts,Description=Creating shortcuts,Template=Shortcut: [1])
MSI (s) (EC:D0) [10:33:13:227]: Executing op: SetTargetFolder(Folder=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts\)
MSI (s) (EC:D0) [10:33:13:228]: Executing op: ShortcutCreate(Name=kqcv3hvy.win|VS2013 x86 Native Tools Command Prompt,,,FileName=%comspec%,Arguments=/k ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat"" x86,WorkingDir=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\,,,,ShowCmd=1,Description=Open Visual Studio 2013 x86 Native Tools Command Prompt,,,,)
MSI (s) (EC:D0) [10:33:14:309]: Note: 1: 2105 2: -2147024809 3: VS2013 x86 Native Tools Command Prompt.lnk 
MSI (s) (EC:D0) [10:33:14:310]: Executing op: ShortcutPropertyCreate(ShortcutName=kqcv3hvy.win|VS2013 x86 Native Tools Command Prompt,PropertyKey=System.AppUserModel.ExcludeFromShowInNewInstall,PropVariantValue=1)
Warning 1909.Could not create Shortcut VS2013 x86 Native Tools Command Prompt.lnk. Verify that the destination folder exists and that you can access it.
DEBUG: Error 2902:  Operation ixoShortcutPropertyCreate called out of sequence.
MSI (s) (EC:D0) [10:33:14:315]: Product: Microsoft Visual C++ 2013 32bit Compilers - ENU Resources -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2902. The arguments are: ixoShortcutPropertyCreate, , 

The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2902. The arguments are: ixoShortcutPropertyCreate, , 
MSI (s) (EC:D0) [10:33:14:327]: Note: 1: 2265 2:  3: -2147287035 
MSI (s) (EC:D0) [10:33:14:328]: User policy value 'DisableRollback' is 0
MSI (s) (EC:D0) [10:33:14:328]: Machine policy value 'DisableRollback' is 0
Action ended 10:33:14: InstallFinalize. Return value 3.

解决方案: -

首先,我让当前用户完全控制C:\ Program Files(x86)\ Microsoft Visual Studio 12.0。通过单击右键单击文件夹属性然后安全性,然后确保SYSTEM,管理员和用户具有完全控制并添加当前用户配置文件并给予完全控制,但这并没有解决问题。 之后我发现环境变量中的ComSpec系统变量值为:%SystemRoot%\ system32 \ cmd.exe; C:\ wamp \ bin \ php \ php5.5.12;。将值更改为%SystemRoot%\ system32 \ cmd 。可执行程序;解决了这个问题。

编辑: -

将当前用户配置文件添加到C:\ Program Files(x86)\ Microsoft Visual Studio 12.0。文件夹导致错误1316.当我尝试卸载VS 2013时,指定的帐户已经存在,所以我删除了该配置文件,然后我就可以成功卸载VS 2013.

答案 3 :(得分:0)

我用这种方式解决了这个问题:首先,我停用了Windows防火墙,然后使用免费程序:Revo Unistaller Pro(http://www.revouninstaller.com/revo_uninstaller_free_download.html),我清除了Visual Studio的旧安装。 之后,我使用CCleaner手动删除依赖于Visual Studio的所有组件:

enter image description here

enter image description here

之后,从命令行(作为管理员)我使用了这个

name like 'microsoft visual%'" call uninstall /nointeractive

删除其他包。 注意:通过用sql替换上面命令中的visual%来重复SQL等。

然后重启电脑并尝试立即安装Visual Studio。

祝你好运