1

从昨天开始,我尝试在我的 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 以防止浪费许可证,因为没有人在这台计算机上工作。

4

2 回答 2

2

通过安装 .Net 4.5 和 SDK 7.0 解决问题。另外将SdkToolsPath设置为$(TargetFrameworkSDKToolsDirectory)(在 WINDOWSDIR\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets 中查找)

... 总而言之,SDK 的情况很奇怪。留下不好的感觉。

于 2013-03-06T11:59:51.067 回答
0

我在安装 Windows SDK 7.1 时遇到了同样的问题,vcredist_x86 安装失败,尽管当我查看控制面板的 unistall 程序选项卡时,没有安装 VC 2010 x86 redist。我还安装了 Windows 7.0 SDK。事实证明,有一个注册表项描述了是否安装了 vc 210 x86 redist 的版本以及安装了哪个版本:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x86

关键是 Installed Mine 是 1 即使卸载选项卡没有显示它,我将它设置为 0 它没有解决问题,但删除了整个

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x86

做过。希望对您有所帮助,我建议您在执行此操作之前备份您的注册表。我对微软会发布一个有这样问题的 SDK 感到非常惊讶。

于 2013-08-22T08:54:10.717 回答