visual-studio Visual Studio 安装问题 - '加载安装组件时遇到问题。正在取消设置。”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/114332/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Visual Studio setup problem - 'A problem has been encountered while loading the setup components. Canceling setup.'
提问by ljs
I've had a seriousissue with my Visual Studio 2008 setup. I receive the ever-so-useful error 'A problem has been encountered while loading the setup components. Canceling setup.' whenever I try to uninstall, reinstall or repair Visual Studio 2008 (team system version). If I can't resolve this issue I have no choice but to completely wipe my computer and start again which will take all day long! I've recently received very strange errors when trying to build projects regarding components running out of memory (despite having ~2gb physical memory free at the time) which has rendered my current VS install useless.
我的 Visual Studio 2008 设置存在严重问题。我收到非常有用的错误“加载设置组件时遇到问题。正在取消设置。” 每当我尝试卸载、重新安装或修复 Visual Studio 2008(团队系统版本)时。如果我不能解决这个问题,我别无选择,只能彻底擦除我的计算机并重新开始,这将需要一整天!我最近在尝试构建有关内存不足的组件的项目时收到了非常奇怪的错误(尽管当时有大约 2GB 的物理内存可用),这使我当前的 VS 安装无用。
Note I installed VS2005 shell version using the vs_setup.msi file in the SQL Server folder afterI had installed VS2008, in order to gain access to the SQL Server 2005 Reporting Services designer in Business Intelligence Development Studio (this is inexplicably unavailable in VS2008).
注意我在安装VS2008后,使用SQL Server文件夹中的vs_setup.msi文件安装了VS2005 shell版本,以便在Business Intelligence Development Studio中访问SQL Server 2005 Reporting Services设计器(这在VS2008中莫名其妙地不可用)。
Does anyone have any solutions to this problem?
有没有人有任何解决这个问题的方法?
P.S.: I know this isn't directly related to programming, however I feel this isappropriate to SO as it is directly related to my abilityto program at all!
PS:我知道这与编程没有直接关系,但是我觉得这对 SO很合适,因为它与我的编程能力直接相关!
Note: A colleague found a solution to this problem, hopefully this should help others with this problem.
注意:一位同事找到了解决此问题的方法,希望这可以帮助其他人解决此问题。
采纳答案by ljs
A colleague found this MS auto-uninstall toolwhich has successfully uninstalled VS2008 for me and saved me hours of work!!
一位同事发现了这个MS 自动卸载工具,它为我成功卸载了 VS2008 并为我节省了数小时的工作!!
Hopefully this might be useful to others. Doesn't speak highly of MS's faith in their usual VS maintenance tools that they have to provide this as well!
希望这可能对其他人有用。没有高度评价 MS 对他们通常必须提供的 VS 维护工具的信心!
回答by Spencer Booth
I had the same error message. For me it was happening because I was trying to run the installer from the DVD rather than running the installer from Add/Remove programs.
我有同样的错误信息。对我来说,这是因为我试图从 DVD 运行安装程序,而不是从添加/删除程序运行安装程序。
回答by Spencer Booth
In my case, uninstalling from Add&Remove Programs didn't work. Instead, the problem was due to a recently hotfix installed through automatic updates. The hotfix to VS 2008 (in my case) has the number KB952241, so I uninstalled it using Add/Remove Programs checking on the show updates option. After it was unistalled the problem was gone.
就我而言,从“添加和删除程序”卸载不起作用。相反,问题是由于最近通过自动更新安装的修补程序。VS 2008 的修补程序(就我而言)的编号为 KB952241,因此我使用添加/删除程序检查显示更新选项将其卸载。卸载后问题就解决了。
回答by Spencer Booth
I encountered the same problem and found a very easy solution.Go to the following Link: http://msdn.microsoft.com/en-us/vs2008/bb968856.aspx
我遇到了同样的问题,找到了一个非常简单的解决方案。转到以下链接:http: //msdn.microsoft.com/en-us/vs2008/bb968856.aspx
and run VS AutoUninstall tool .This will automatically remove all the components of VS 2008.
并运行 VS AutoUninstall 工具。这将自动删除 VS 2008 的所有组件。
Cheers
干杯
回答by Eric Lloyd
Sure enough, for me, it was the hotfixes. In Add/Remove Programs, check the "Show Updates" box, and remove ALL of the Hotfixes associated with your version of VS2008. Then try the "Change/Remove" button - it should now proceed without a hitch.
果然,对我来说,这是修补程序。在添加/删除程序中,选中“显示更新”框,然后删除与您的 VS2008 版本相关的所有修补程序。然后尝试“更改/删除”按钮 - 现在应该可以顺利进行。
Well, it did for me, anyway... ;-)
好吧,无论如何,它对我有用...... ;-)
回答by Andrew
I have Visual Studio Team System 2008 Development Edition, and had to remove all updates and Hotfixes:
我有Visual Studio Team System 2008 开发版,必须删除所有更新和修补程序:
- Update
KB972221 - Hotfix
KB973674 - Hotfix
KB971091
- 更新
KB972221 - 修补程序
KB973674 - 修补程序
KB971091
Reboot, then the following Hotfix appeared, which I then removed as per @riaraos' answer:
重新启动,然后出现以下修补程序,然后我根据@riaaraos 的回答将其删除:
- Hotfix
KB952241
- 修补程序
KB952241
Before the Change/Remove would work!
在更改/删除工作之前!
Hope that helps someone else.
希望能帮助别人。
回答by Zelalem
Uninstall hotfixes installed in related to vs2008 and then try again. It worked for me and hopefully it will for you as well.
卸载安装在vs2008 相关的hotfix 然后再试一次。它对我有用,希望对你也有用。
Thanks, Zelalem
谢谢,泽拉勒姆
回答by Ajay
Remove the following hot fixes and updates
删除以下修补程序和更新
- Update KB972221
- Hotfix KB973674
- Hotfix KB971091
- 更新 KB972221
- 修补程序 KB973674
- 修补程序 KB971091
Restart the PC and try to uninstall now. This worked for me without problems.
重新启动 PC 并尝试立即卸载。这对我来说没有问题。
回答by pnkfelix
Microsoft itself posted a KB article about this, and that article has a service pack that they claim fixes the problem. See below.
微软自己发布了一篇关于此的知识库文章,该文章有一个服务包,他们声称可以解决这个问题。见下文。
http://support.microsoft.com/kb/959417/
http://support.microsoft.com/kb/959417/
It took a while for the associated update to install itself, but once it did, I was able to run the Visual Studio setup successfully from the Add/Remove Programs control panel.
相关更新需要一段时间才能自行安装,但是一旦安装,我就可以从“添加/删除程序”控制面板成功运行 Visual Studio 安装程序。
回答by rep_movsd
You should look for the MSI setup logs in the temp directory of your system. They will contain detailed inforamtion about why the setup failed. I had a similar installation problem with Visual Studio 2008 which I was able to resolve by studying the logs.
您应该在系统的临时目录中查找 MSI 安装日志。它们将包含有关安装失败原因的详细信息。我在 Visual Studio 2008 上遇到了类似的安装问题,我通过研究日志解决了这个问题。

