从昨天开始,我尝试在我的 Windows 7 x64 机器上安装适用于 dot.net Framework 4.0 的 Windows SDK 7.1。在安装过程中,我每次都会遇到相同的错误。
错误信息:
"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"
那是一条非常无用的错误消息,因此我浏览了 www 以了解更多信息,并按照人们推荐的建议步骤进行操作。我打开查看日志并得到与其他人相同的返回错误。
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation failed with the return code 5100"
我尝试了 Microsoft、MSDN 和其他人推荐的所有东西,但对我没有用。
我试图解决问题的东西:
- 卸载 Document Explorer(msdn 推荐)
- 卸载最新的 Microsoft Visual C++ 2010 Redist x64/x86 版本 (microsoft)
- 卸载 Microsoft Windows SDK Windows 7 (dot.net 3.5)
- 安装 Microsoft Windows SDK 8
但就像我说的那样,没有任何帮助:/我在安装过程中每次都会收到相同的错误消息。
关于我的系统的其他事实:
- 我的系统上有很多 Microsoft Visual C++ 2008 Redist 版本
- Microsoft Visual C++ 编译器 2008 标准版 enu x64/x86
- 适用于 Visual Studio 2008 的 Microsoft Windows SDK
背景资料:
我在我的机器 Windows 7 x64 上安装了 Jenkins 作为服务。我们进行了从 dot.net Framework 3.5 到 dot.net Framework 4.0 的转换。但问题是 sgen.exe 发送错误:
"SGEN : error : An attempt was made to load an assembly with an incorrect format.."
(在构建日志中查找)。Windows SDK 在其 bin 文件夹中包含 sgen.exe,例如“C:\Program Files\Microsofft SDKs\Windows\v7.0\Bin”。所以我认为 SDK 已过时(v7.0a),我尝试为 dot.net Framework 4.0 安装 Windows SDK v7.1。可能在我的系统上安装最新的 Visual Studio 版本可能有助于解决问题,因为它应该同时安装 Windows SDK。
但我不想在上面安装 Visual Studio 以防止浪费许可证,因为没有人在这台计算机上工作。