简体   繁体   English

异步CTP损坏的安装后如何修复Visual Studio 2010

[英]How to repair Visual Studio 2010 after broken installation of Async CTP

When I try to install the Async CTP for Visual Studio 2010 the installer fails. 当我尝试为Visual Studio 2010安装异步CTP时,安装程​​序将失败。

I got the same problem bob mujica described in http://social.msdn.microsoft.com/Forums/en-US/netfxsetup/thread/2b816f97-ba1a-4342-824f-07c53f946b57 . 我在http://social.msdn.microsoft.com/Forums/zh-CN/netfxsetup/thread/2b816f97-ba1a-4342-824f-07c53f946b57中描述了同样的问题bob mujica

Now Visual Studio doesn't work at all. 现在,Visual Studio根本无法工作。 I don't care about having CTP, I just want Visual Studio back. 我不在乎是否拥有CTP,我只想要Visual Studio。 Does anyone know how I can do this? 有人知道我该怎么做吗?

Ian, 伊恩

I know it won't help in this scenario but a little advice for the future that could save a lot of heartache. 我知道这在这种情况下无济于事,但为将来提供一些建议可以节省很多心痛。 for the past 7-8 years, i've got into a disciplined habit of making a fresh backup (ghost) of my program partition (genarally the c:\\ drive in my case) everytime i add a new program feature (other than service packs etc) to my installation. 在过去的7-8年中,我养成了一种习惯,每次添加新程序功能(服务除外)时,都要对程序分区(通常是c:\\驱动器)进行新的备份(重影)包等)到我的安装中。 This basically means that should something 'not work' after installing, I can simply restore the ghost image over the top, rather than spend hours trying to figure why. 这基本上意味着,如果安装后某些东西“不起作用”,我可以简单地在顶部还原虚影映像,而不必花费数小时试图找出原因。

As i said, may not help this time but is a good discipline to work towards in the future. 正如我所说,这次可能无济于事,但却是将来要努力的良好纪律。

My recommendation would be to install a fresh copy of Visual Studio, or perhaps to copy files from a fresh installation to overwrite any updated libraries. 我的建议是安装Visual Studio的全新副本,或者从全新安装中复制文件以覆盖所有更新的库。 Assuming that you have the installation media you could also try to repair the installation from Control Panel -> Programs (Add/Remove Programs if you're still on XP). 假设您具有安装媒体,则还可以尝试从“控制面板”->“程序”(如果仍在XP上,则“添加/删除程序”)修复安装。

From the linked post it sounds like either (a) a library file has been overwritten with an incompatible version or (b) a library file is referenced but not found on the system. 从链接的帖子中,听起来像是(a)库文件已使用不兼容的版本覆盖,或者(b)已引用库文件,但在系统上找不到。 (a) likely can be fixed by trying any of the above. (a)可以通过尝试上述任何一种方法来解决。 (b) most likely requires VS to be removed and reinstalled from scratch. (b)最有可能要求删除VS,然后从头开始重新安装。 If you have a second machine around, you could try installing VS on that and dump or record the relevant registry changes and compare it with the faulty installation, but it might be faster just to reinstall. 如果周围有第二台计算机,则可以尝试在该计算机上安装VS并转储或记录相关的注册表更改,并将其与错误的安装进行比较,但是重新安装可能会更快。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM