近来因为需要开发C++的程序,所以要在Visual Studio 2008中添加C++的开发组件,但是在添加组件的时候,弹出“A problem has been encountered while loading the setup components. Canceling setup.”的提示。无奈之下,只好卸载,但卸载的时提示依旧,郁闷。

上百度查了一把,找到一条解决方案:Visual Studio 2008无法重装的解决办法之一。其中提到了Windows install clean up,好吧,去下这个工具来。运行起来后找到Visual Studio 2008相关的项,选中后点击“Remove”按钮,hoho,出了一大堆命令行窗口在运行。完事后再来重装Visual Studio 2008,就搞定啦。

当安装 VS 2008 SP1 之后,如果想再运行原始 VS2008 安装程序进行修复、更改将遭遇如下错误:

"A problem has been encountered while loading the setup components. Canceling setup."

这是因为 SP1 安装之后,更新了 VS 某些相关产品的信息,如产品号、产品版本号等等,这些更新写入了安装目录,导致原始 setup.exe 无法执行检测逻辑而失败。

此时需要从 控制面板 》 添加/删除程序 》 找到对应的 VS 版本 》 点击卸载/更改 启动安装向导。

参考:http://blogs.msdn.com/heaths/archive/2008/08/20/do-not-repair-vs-2008-sp1-from-installation-media.aspx

If you need to repair Visual Studio 2008 once SP1 has been applied or wish to change which features are installed, you cannot run setup.exe from the original installation media.

When you run repair from media you may see an error like, "A problem has been encountered while loading the setup components. Canceling setup."

Workaround

Open the Control Panel and go to Add/Remove Programs, or on Vista click on the "Uninstall a program" link under Programs. Find Microsoft Visual Studio 2008 (the exact product name will vary based on edition and language installed) and click on the Uninstall/Change button. When setup launches and components are loaded, you will be asked to repair, change features, or uninstall. Choose the option you which to perform and continue as directed.

Details

Visual Studio is actually a collection of different installation packages, just as VS2008 SP1 is a collection of different installation packages. VS2008 SP1 replaces some of the original packages using minor or major upgrades and patches other products. This changes information about the products originally installed like the ProductCode and/or ProductVersion. This affects the detection logic that setup.exe uses to determine what to do when installing, repairing, or uninstalling the product.

This information is stored both on the installation media as well as on your hard disk under the target installation directory. For various reasons including that media is often write-protected, we can only update this information stored on your hard disk. So once SP1 is installed, the detection and package information on the installation media and on your hard disk are out of sync and only the copy on your hard disk contains the correct information.

转载于:https://www.cnblogs.com/avril/archive/2010/05/20/1740495.html

解决“A problem has been encountered while loading the setup components. Canceling setup.”的问题...相关推荐

  1. 解决“A problem has been encountered while loading the setup components. Canceling setup.”的问题

    当安装 VS 2008 SP1 之后,如果想再运行原始 VS2008 安装程序进行修复.更改将遭遇如下错误: "A problem has been encountered while lo ...

  2. 解决Ubuntu14.04 下 E: Encountered a section with no Package: header 问题

    参考: ubuntu-E:Encountered a section with no Package: header的解决办法 解决Ubuntu14.04 下 E: Encountered a sec ...

  3. 成功解决RuntimeWarning: divide by zero encountered in double_scalars

    成功解决RuntimeWarning: divide by zero encountered in double_scalars 目录 解决问题 解决思路 解决方法 解决问题 RuntimeWarni ...

  4. Hadoop HA 高可用集群启动报错 Encountered exception loading fsimage 解决方案

    笔者在搭建好Hadoop HA 高可用集群启动时报如下错误,后面是解决方案. 报错信息: 2018-08-24 11:18:07,475 INFO org.apache.hadoop.hdfs.ser ...

  5. Vscode解决Setting.json报警告:Problems loading reference ... Unable to load schema from ...

    一. 问题分析 在vscode中打开设置文件setting.json时,问题窗口会报警告,如下图所示.. Ctrl + C 复制下警告信息,粘贴到txt中,显示如下: { "resource ...

  6. 解决manjaro更新后pacman: error while loading shared libraries

    前言 用了manjaro两个多月,一直很稳定,一大早看到了168个包要更新,想也没想就点了yes,结果就遇到了传说中的滚挂,由于头一次遇到这种问题,花了一天的时间才解决,中间也走了不少弯路,一定要记录 ...

  7. 解决IntelliJ创建Maven项目一直显Loading archetype list

    最近在使用idea的过程中,创建maven项目,一直会遇到这个问题,查了很多资料,最终解决啦. 网上普遍存在两种方式 但是我是用第三种方式解决的..... 首先,说说前两种方式, 1.删除{User_ ...

  8. 解决“A problem occurred starting process 'command ''D:\AndroidSdk\..\mips64el-linux-android-strip''的问题

    编译没错,但是运行的时候报了错:Execution failed for task ':app:transformNativeLibsWithStripDebugSymbolForDebug'. &g ...

  9. 解决调试时候出现的“Encountered an improper argument”错误

    今天分享一个我们在调试时候出现的一个错误,同时这个错误让我的工程也崩了好几十次. 错误 首先,我们看一下这个错误的提示框图: 其错误提示为:Encountered an improper argume ...

最新文章

  1. 《转》每天起床时,优秀创业者都会问自己这3个问题
  2. 【bzoj4832】[Lydsy1704月赛]抵制克苏恩 期望dp
  3. 数学实验matlab课后习题答案,matlab数学实验教程答案
  4. 不用L约束又不会梯度消失的GAN,了解一下?
  5. ABAP formula
  6. 《线程管理:线程基本操作》
  7. centos7 最小化安装 无 ifconfig,netstat 的安装
  8. SpringCloud——服务网关
  9. 目标检测|YOLOv2原理与实现(附YOLOv3)
  10. python继承封装多态简单理解_Python面向对象编程:封装、继承、多态(基础篇十)...
  11. SDRAM 控制器(一)
  12. Oracle 执行计划详解(预估 + 真实)
  13. 一文搞懂深度学习所有工具——Anaconda、CUDA、cuDNN
  14. 安装office,错误1706。安装程序找不到所需文件。请检查网络连接或CD-ROM驱动器。
  15. 步进电机控制和步进电机原理
  16. Memcached缓存
  17. Newton冷却定理微分数学公式推导
  18. CF 949D Curfew——贪心(思路!!!)
  19. linux服务器移动硬盘挂载,linux挂载命令mount及U盘、移动硬盘的挂载
  20. HZ服务器装系统速度变慢,360Hz刷新率有些什么厉害的地方?响应时间系统延迟测试...

热门文章

  1. py 的 第 30 天
  2. Git之第三方托管oschina
  3. hadoop-2.7.2 分布式集群搭建
  4. 用excel打开文本内容
  5. 看了交大自产的电影《我的太阳》
  6. kali linux重启网络服务报错,Web安全学习笔记之在Kali Linux上安装Openvas以及启动失败修复...
  7. 计算机做游戏到大学要学什么,大学学什么专业,毕业才能从事电竞行业?
  8. Android.View.InflateException: Binary XML File Line #异常的解决
  9. mpvue 从零开始 女友的收纳盒 6 mpvue-entry入口管理
  10. C#操作 MongoDB【原创】