您的位置:首页 > 其它

安装 Windows SDK for Windows 7 时遇到的一个问题及解决办法

2015-03-22 17:46 676 查看
最近试着用 VS2010 + Qt 开发程序,发现 VS2010 里面没有提供单独的调试器 cdb,这样用 Qt Creator 时就无法设置断点调试,很不方便。想起 Windows SDK for Windows 7 中是有cdb。因此就将 Windows SDK for Windows 7 下载下来安装。但是装到一半却遇到了问题。错误提示如下:

A problem occurred while installing selected Windows SDK components.
Installation of the "Microsoft Windows SDK for Windows 7" product has reported the following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information.
Please attempt to resolve the problem and then start Windows SDK setup again. If you continue to have problems with this issue, please visit the SDK team support page at http://go.microsoft.com/fwlink/?LinkId=130245. Click the View Log button to review the installation log.
To exit, click Finish.


这个错误提示可以说没啥用,SDK 没装完,根本就没有 Samples\Setup\HTML\ConfigDetails.htm 这个文件。Google 了一番,算是找到了解决办法,这里记录一下。

下面的网址对这个问题做了一番讨论,感兴趣的可以仔细读读。

http://stackoverflow.com/questions/1901279/windows-7-sdk-installation-failure

大体的意思就是说电脑里安装的 Visual C++ 2010 Redistributable 比 SDK 中自带的版本高( 10.0.30319 )时就会报错。最简单的解决办法就是删除掉已经安装的Visual C++ 2010 Redistributable,然后安装上SDK 上提供的Visual C++ 2010 Redistributable。我就是采用的这种方法,是可行的。最后再升级一下Visual C++ 2010 Redistributable就行了。

另一种方法比较麻烦,这个网站提供了具体的操作步骤:

http://ctrlf5.net/?p=184

有兴趣的可以试试。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: