VS2012安装失败?
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VS2012安装失败?相关的知识,希望对你有一定的参考价值。
win732位旗舰版的系统,VS安装文件也没有问题,之前在其他电脑上也装过,最近公司新买的几台工控电脑上安装VS都是这种问题,请教大家如何解决?电脑没有安装任何杀毒软件,听说之前有个同事通过该注册表,弄好了,可是我在网上没搜到相关方法,请教大家如何解决?
解决方案:1.电脑系统为win7 64位,重新下载安装了Microsoft.Visual.C++ 2012的组件,看其他文章说x86,x64的组件都需要安装,可以试一下这种方案。
2.如果还不行,用一下‘电脑管家‘或者‘360卫士’里面的‘电脑诊所’功能,尝试修复一下vc++组件。
3.基于上面还可行,应该是vs2012安装包的问题,重新下载。Tips:win7 64位下载安装32位的vs2012没啥问题。 参考技术A 再次将安装程序打开,选择修复试试。 参考技术B 文件冲突吧可能
●VS2013安装失败,安装无法继续,因为必需的组件失败
重装VS2013时碰到了这样的问题,总是提示“安装失败,安装无法继续,因为某些必需的组件失败”。
校验了安装文件,是没有问题的,使用了“Windows Install Clean Up”清理过,同样不行
以下截取自错误日志
[1540:0E9C][2018-06-17T10:38:52]i304: Verified existing payload: win_xpsupport at path: C:ProgramDataPackage Cache{F361FE04-789E-42F3-BBAB-E7B380AA5E06}v11.0.51106packagesXPSupportWin_XPSupport.msi. [1740:04FC][2018-06-17T10:38:52]i000: MUX: Source confirmed [1740:17A4][2018-06-17T10:38:52]i000: MUX: ExecuteError: Package (vsbsln_neu_28) failed: Error Message Id: 1402 ErrorMessage: Error 1402.Could not open key: UNKNOWNComponents4A4620288CE62493D8D9214FBBF8FC0772DDB6B079031EF4DB6ED1E57C935936. Verify that you have sufficient access to that key, or contact your support personnel. [1540:0E9C][2018-06-17T10:38:53]i304: Verified existing payload: cab78EF0B2BF4BFD8C8F6D80285D722A15A at path: C:ProgramDataPackage Cache{F361FE04-789E-42F3-BBAB-E7B380AA5E06}v11.0.51106packagesXPSupportcab1.cab. [1740:04FC][2018-06-17T10:38:53]i000: MUX: Source confirmed [1740:04FC][2018-06-17T10:38:53]i338: Acquiring package: win_xpsupport, payload: cabFCE2154F7B6FCF2AB844AC37D01AD97D, copy from: F:packagesXPSupportcab2.cab [1540:0E9C][2018-06-17T10:38:53]i305: Verified acquired payload: cabFCE2154F7B6FCF2AB844AC37D01AD97D at path: C:ProgramDataPackage Cache.unverifiedcabFCE2154F7B6FCF2AB844AC37D01AD97D, moving to: C:ProgramDataPackage Cache{F361FE04-789E-42F3-BBAB-E7B380AA5E06}v11.0.51106packagesXPSupportcab2.cab. [1740:04FC][2018-06-17T10:38:53]i000: MUX: Source confirmed [1740:04FC][2018-06-17T10:38:53]i338: Acquiring package: win_xpsupport, payload: cab5854E62F9D8BB23634F7C737CAAB6E30, copy from: F:packagesXPSupportcab3.cab [1540:0D0C][2018-06-17T10:38:53]e000: Error 0x80070643: Failed to install MSI package. [1540:0D0C][2018-06-17T10:38:53]e000: Error 0x80070643: Failed to execute MSI package. [1740:17A4][2018-06-17T10:38:53]e000: Error 0x80070643: Failed to configure per-machine MSI package. [1740:17A4][2018-06-17T10:38:53]i000: MUX: Installation size in bytes for package: vsbsln_neu_28 MaxAppDrive: 0 MaxSysDrive: 386730750 AppDrive: 0 SysDrive: 0 [1740:17A4][2018-06-17T10:38:53]i000: MUX: Return Code:0x80070643 Msi Messages:1402 Result Detail:0 Restart:None [1540:0E9C][2018-06-17T10:38:53]i305: Verified acquired payload: cab5854E62F9D8BB23634F7C737CAAB6E30 at path: C:ProgramDataPackage Cache.unverifiedcab5854E62F9D8BB23634F7C737CAAB6E30, moving to: C:ProgramDataPackage Cache{F361FE04-789E-42F3-BBAB-E7B380AA5E06}v11.0.51106packagesXPSupportcab3.cab. [1740:04FC][2018-06-17T10:38:53]i000: MUX: Source confirmed
最后在网上查到了解决办法,发现是注册表权限问题。
psexec.exe是修改注册表权限的工具,下载地址:https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx
1、运行cmd,定位到psexec.exe所在文件路径,然后执行:psexec.exe -i -d -s regedit.exe ,会启动注册表
2、找到 HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionInstallerUserDataS-1-5-18Components
3、在Components文件夹右键,选择“权限”,选中“Administros”,设置为“完全控制”。(在“Componets”文件夹设置权限,是为了省事,不用一个个设置下面子文件的权限)
然后重新安装VS2013,成功。
参考原文 https://my.oschina.net/oodbqpoo/blog/495850
以上是关于VS2012安装失败?的主要内容,如果未能解决你的问题,请参考以下文章