解决“A problem has been encountered while loading the setup components. Canceling setup.”的问题...
近來因為需要開發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.”的问题...的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【Xamarin挖墙脚系列:mac 终端
- 下一篇: css3 (2)