安装windows SDK 7.1时出现错误。

时间:2022-09-27 19:59:53

I've run into an error when installing the Windows SDK that I've seen posted around the Internet, but none of the solutions are working for me. Here is the log I'm getting

我在安装Windows SDK时遇到了一个错误,我在互联网上看到过,但是没有一个解决方案对我有效。这是我得到的对数。

9:43:37 AM Monday, October 14, 2013: SFX C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation started with log file C:\Users\clarkbd\AppData\Local\Temp\Microsoft Windows SDK for Windows 7_c3c42538-8a3e-439d-be39-aee3078ca098_SFX.log
9:43:43 AM Monday, October 14, 2013: C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x64.exe installation failed with return code 1603
9:43:53 AM Monday, October 14, 2013: [SDKSetup:Error] Config_Products_Install: Installation of Product Microsoft Windows SDK for Windows 7 (failed): Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information. Stack:    at SDKSetup.Product.ConfigureRelatedSfx()    at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent)
9:43:53 AM Monday, October 14, 2013: [SDKSetup:Info] Config_Products_InstallNew: End installation of new product: Microsoft Windows SDK for Windows 7
9:43:53 AM Monday, October 14, 2013: [SDKSetup:Error] Config_Products_Install: Windows SDK Setup (failed): 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. Stack:    at SDKSetup.Product.ConfigureNewProduct(ManualResetEvent CancelEvent)      at SDKSetup.Product.SetupProduct(TaskMode taskMode, ManualResetEvent CancelEvent)       at SDKSetup.ProductCollection.SetupProducts(TaskMode taskMode, DownloadManager downloadManager, ManualResetEvent cancelEvent)       at SDKSetup.ConfigProducts.DoCurrentTask(TaskMode Task)

When I try to run vcredist_x64 separately, I get this error:

当我尝试单独运行vcredist_x64时,我得到了这个错误:

MSI (s) (80:5C) [09:51:50:971]: Product: Microsoft Visual C++ 2010  x64 Redistributable - 10.0.30319 -- A later version of Microsoft Visual C++ 2010  x64 Redistributable - 10.0.30319 is already installed.

Now, as per every solution I've read about this online, I'd uninstall the redistributable and continue with the installation. The problem is that I don't have any VC++ 2010 redistributables installed (only 2005 and 2008). The only thing besides the main program is something called Microsoft Visual Studio 2010 Express Prerequisites x64 - ENU. Uninstalling this has no effect on the errors I receive. There's something on my computer that's telling the SDK I have this redist installed, but I'm not sure what. Can anyone shed some light on this for me?

现在,根据我在网上读到的每一个解决方案,我将卸载可重新分配并继续安装。问题是,我没有安装任何vc++ 2010的可重新分发版(只有2005年和2008年)。除了主程序之外,唯一的事情就是微软Visual Studio 2010 Express先决条件x64 - ENU。卸载对我收到的错误没有影响。我的电脑上有个东西告诉SDK我已经安装了这个,但我不确定是什么。有人能帮我解释一下吗?

Edit: This problem persists even when I completely uninstall Visual C++ 2010. What else can I do to remove all traces of this software from my machine?

编辑:即使我完全卸载Visual c++ 2010,这个问题仍然存在。我还能做些什么来从我的机器上删除这个软件的所有痕迹呢?

Edit 2: After searching the registry a bit, I've found that NI installs its own visual c++ 2010 redistributable with one of its programs, but it isn't included in the "Add or Remove Programs" list. I've uninstalled this and hopefully the sdk will install properly.

编辑2:在搜索了注册表之后,我发现NI安装了自己的visual c++ 2010可重新分配的程序,但它不包含在“添加或删除程序”列表中。我卸载了这个,希望sdk能正常安装。

Edit 3: No luck, still getting the same error. I can find other 2010 redistributables in the registry, but trying to execute the uninstall string manually just tells me that I can only run it on installed packages. This would be much simpler if I knew how the vcredist finds currently installed redistributions.

编辑3:没有运气,仍然有同样的错误。我可以在注册表中找到其他的2010重新分布,但是尝试手动执行卸载字符串,只告诉我只能在已安装的包上运行它。如果我知道vcredist如何找到当前安装的重新发行版,这将会简单得多。

4 个解决方案

#1


112  

This is a known issue http://support.microsoft.com/kb/2717426

这是一个已知的问题http://support.microsoft.com/kb/2717426。

CAUSE

导致

This issue occurs when you install the Windows 7 SDK on a computer that has a newer version of the Visual C++ 2010 Redistributable installed.

当你安装Windows 7 SDK的时候,这个问题就发生了,因为它有一个新版本的Visual c++ 2010重新发布的版本。

RESOLUTION

决议

To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the Windows 7 SDK. You may have one or more of the following products installed:

要解决这个问题,您必须在安装Windows 7 SDK之前卸载Visual c++ 2010的所有版本。您可以安装以下产品中的一个或多个:

  • Microsoft Visual C++ 2010 x86 Redistributable
  • 微软Visual c++ 2010 x86再发行版。
  • Microsoft Visual C++ 2010 x64 Redistributable
  • 微软Visual c++ 2010 x64再发行版。

After uninstalling the Microsoft Visual C++ 2010 Redistributable products, you may install the Windows 7 SDK. After installing the Windows 7 SDK, you may then reinstall the newer version of the Visual C++ 2010 Redistributable products, in order to restore the Visual C++ 2010 Redistributable products to their original state.

在卸载Microsoft Visual c++ 2010再分配产品后,您可以安装Windows 7 SDK。在安装Windows 7 SDK之后,您可以重新安装Visual c++ 2010可再分配产品的更新版本,以恢复Visual c++ 2010再分配产品到其原始状态。

安装windows SDK 7.1时出现错误。

#2


64  

Success! I was able to purge the vc++ 2010 redistributables from my machine using Microsoft's Fix it utility: http://support.microsoft.com/mats/Program_Install_and_Uninstall

成功!我可以使用微软的Fix it实用工具,从我的机器上清除vc++ 2010的重新分配。

It was able to find both the x64 and x86 versions of the redistributable and uninstall it, removing ~120 entries from the registry and allowing the sdk installation to go forward. It had nothing to do with NI's version of the vc++ 2010 redistributable.

它能够找到redistributable的x64和x86版本,并卸载它,从注册表中删除~120个条目,并允许sdk安装继续进行。它与NI版本的vc++ 2010再发行版没有任何关系。

#3


4  

I struggled with Windows SDK web installer on Win7 Prof 64bit. Uninstalling/reinstalling VS 2010 redistributables didn't help. Only after downloading Windows SDK ISO file the installation completed successfully (the one for x64 is GRMSDKX_EN_DVD.iso).

我在Win7教授64位的Win7系统上与Windows SDK web安装程序进行了斗争。卸载/重新安装VS 2010重新分配没有帮助。只有下载了Windows SDK ISO文件后,安装才成功完成(x64的版本是GRMSDKX_EN_DVD.iso)。

My theory would be that web installer chose wrong architecture somehow causing installation to fail.

我的理论是,web安装程序选择错误的体系结构,导致安装失败。

#4


1  

All of the above answers helped me but none really worked for me.

以上所有的答案对我都有帮助,但对我来说却没有任何帮助。

I finally managed to compile 64 bits with Visual Express 2010 by installing the SDK before Visual Express 2010. So:

在2010年Visual Express之前,我通过安装SDK最终成功地编译了64位与Visual Express 2010。所以:

  1. (uninstall Visual Express 2010, maybe using this registry hack if some Visual Compilers are still seen as installed but not shown in the "Programs and Features" panel)
  2. (uninstall Visual Express 2010,如果一些可视化编译器仍然被安装,但没有显示在“程序和特性”面板中,可能会使用这个注册表hack)
  3. Install Windows SDK
  4. 安装Windows SDK
  5. Install Visual Express 2010
  6. 安装视觉表达2010
  7. Configure the default library search path to point at the SDK
  8. 配置默认库搜索路径以指向SDK。

I'm lazy to uninstall Visual Express, reinstall the SDK and then again Visual Express, but I got it all in a VirtualBox VM which I will preciously keep in a safe at the bank! ;)

我懒得卸载Visual Express,重新安装SDK,然后再重新安装Visual Express,但是我把它全部放在一个VirtualBox虚拟机中,我将在银行里小心翼翼地保存它!,)

#1


112  

This is a known issue http://support.microsoft.com/kb/2717426

这是一个已知的问题http://support.microsoft.com/kb/2717426。

CAUSE

导致

This issue occurs when you install the Windows 7 SDK on a computer that has a newer version of the Visual C++ 2010 Redistributable installed.

当你安装Windows 7 SDK的时候,这个问题就发生了,因为它有一个新版本的Visual c++ 2010重新发布的版本。

RESOLUTION

决议

To resolve this issue, you must uninstall all versions of the Visual C++ 2010 Redistributable before installing the Windows 7 SDK. You may have one or more of the following products installed:

要解决这个问题,您必须在安装Windows 7 SDK之前卸载Visual c++ 2010的所有版本。您可以安装以下产品中的一个或多个:

  • Microsoft Visual C++ 2010 x86 Redistributable
  • 微软Visual c++ 2010 x86再发行版。
  • Microsoft Visual C++ 2010 x64 Redistributable
  • 微软Visual c++ 2010 x64再发行版。

After uninstalling the Microsoft Visual C++ 2010 Redistributable products, you may install the Windows 7 SDK. After installing the Windows 7 SDK, you may then reinstall the newer version of the Visual C++ 2010 Redistributable products, in order to restore the Visual C++ 2010 Redistributable products to their original state.

在卸载Microsoft Visual c++ 2010再分配产品后,您可以安装Windows 7 SDK。在安装Windows 7 SDK之后,您可以重新安装Visual c++ 2010可再分配产品的更新版本,以恢复Visual c++ 2010再分配产品到其原始状态。

安装windows SDK 7.1时出现错误。

#2


64  

Success! I was able to purge the vc++ 2010 redistributables from my machine using Microsoft's Fix it utility: http://support.microsoft.com/mats/Program_Install_and_Uninstall

成功!我可以使用微软的Fix it实用工具,从我的机器上清除vc++ 2010的重新分配。

It was able to find both the x64 and x86 versions of the redistributable and uninstall it, removing ~120 entries from the registry and allowing the sdk installation to go forward. It had nothing to do with NI's version of the vc++ 2010 redistributable.

它能够找到redistributable的x64和x86版本,并卸载它,从注册表中删除~120个条目,并允许sdk安装继续进行。它与NI版本的vc++ 2010再发行版没有任何关系。

#3


4  

I struggled with Windows SDK web installer on Win7 Prof 64bit. Uninstalling/reinstalling VS 2010 redistributables didn't help. Only after downloading Windows SDK ISO file the installation completed successfully (the one for x64 is GRMSDKX_EN_DVD.iso).

我在Win7教授64位的Win7系统上与Windows SDK web安装程序进行了斗争。卸载/重新安装VS 2010重新分配没有帮助。只有下载了Windows SDK ISO文件后,安装才成功完成(x64的版本是GRMSDKX_EN_DVD.iso)。

My theory would be that web installer chose wrong architecture somehow causing installation to fail.

我的理论是,web安装程序选择错误的体系结构,导致安装失败。

#4


1  

All of the above answers helped me but none really worked for me.

以上所有的答案对我都有帮助,但对我来说却没有任何帮助。

I finally managed to compile 64 bits with Visual Express 2010 by installing the SDK before Visual Express 2010. So:

在2010年Visual Express之前,我通过安装SDK最终成功地编译了64位与Visual Express 2010。所以:

  1. (uninstall Visual Express 2010, maybe using this registry hack if some Visual Compilers are still seen as installed but not shown in the "Programs and Features" panel)
  2. (uninstall Visual Express 2010,如果一些可视化编译器仍然被安装,但没有显示在“程序和特性”面板中,可能会使用这个注册表hack)
  3. Install Windows SDK
  4. 安装Windows SDK
  5. Install Visual Express 2010
  6. 安装视觉表达2010
  7. Configure the default library search path to point at the SDK
  8. 配置默认库搜索路径以指向SDK。

I'm lazy to uninstall Visual Express, reinstall the SDK and then again Visual Express, but I got it all in a VirtualBox VM which I will preciously keep in a safe at the bank! ;)

我懒得卸载Visual Express,重新安装SDK,然后再重新安装Visual Express,但是我把它全部放在一个VirtualBox虚拟机中,我将在银行里小心翼翼地保存它!,)