现在的位置: 首页 > 综合 > 正文

Visual Studio 2010 安装出现问题记录

2018年02月20日 ⁄ 综合 ⁄ 共 1723字 ⁄ 字号 评论关闭

1 重装系统后, 运行  visual studio 2010 安装包时,安装过程中出现这样的错误:

查看错误日志 :

[08/20/13,09:19:30] VC 10.0 Runtime (x86): [2] CMsiComponent::Install() expects the setup file for VC 10.0 Runtime (x86), but the file failed verification.
[08/20/13,09:19:31] setup.exe: [2] ISetupComponent::Pre/Post/Install() failed in ISetupManager::InternalInstallManager() with HRESULT -2147467259.
[08/20/13,09:19:33] VS70pgui: [2] DepCheck indicates VC 10.0 Runtime (x86) is not installed.

这个问题相信很多人都会遇到,查了很久的资料,终于找到了原因

此错误参考:

First, there are several things I would like to clarify with you:

  • What is your OS version?
  • Which software are you trying to install? Is it Visual Studio 2010?

According to the log file you provide, seems like the install source has corrupted.

If you are installing Visual Studio 2010, you can download VS from the link below and install it:
http://www.microsoft.com/visualstudio/en-us/download

Before
install Visual Studio, please finish the steps below:

-          Turn
off your anti-virus/antispyware software during installation;

-          Install
the latest Windows updates from the Windows Update site:
http://windowsupdate.microsoft.com;

-          Complete
or dismiss Windows Update before installation. (And don't forget to turn it on later)

 

Also, you can get the VC 10.0 Runtime from the links below:

最后两段很有用:

错误原因是缺少.Net平台,Framework 4,因为我的电脑是重新装的系统,所以原来的.net
平台已经没有了

2    从给出的网址中下载并安装,在安装这个平台的过程中又出现错误:

“安装未成功”  查看错误日志:一般信任关系失败

开始以为是浏览器给拦截了,换了几个浏览器也不对,google问题找到了解决办法,

错误的原因是:dll文件注册不正确,需要重新注册Softpub.dll,
Wintrust.dll, Initpki.dll, and Mssip32.dll这四个dll文件

”开始“-”运行“-”cmd“
  一条一条写入

regsvr32
/s Softpub.dll   回车

regsvr32 /s Wintrust.dll  回车
 regsvr32 /s Initpki.dll  回车
 regsvr32 /s Mssip32.dll  回车


并没有出现dll注册成功的弹窗,因为之前已经注册过了,所以不会提示,但是这次注册正确了,再次安装这个平台,很顺利 ok


这样回到Visual Studio 2010的安装包,重新运行安装,很顺利  ,因为需要下载的东西太多,所以安装时间很久,在这个过程中附图一张:






抱歉!评论已关闭.