转载

安装Windows SDK 7.1时出错 - Error when installing windows SDK 7.1


问题:

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. 我在安装我见过的互联网上发布的Windows SDK时遇到了一个错误,但没有一个解决方案适合我。 Here is the log I'm getting 这是我得到的日志

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). 问题是我没有安装任何VC ++ 2010可再发行组件(仅限2005和2008)。 The only thing besides the main program is something called Microsoft Visual Studio 2010 Express Prerequisites x64 - ENU . 除主程序之外唯一的东西是名为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. 我的计算机上有一些东西告诉SDK我安装了这个redist,但我不知道是什么。 Can anyone shed some light on this for me? 任何人都可以为我阐明这一点吗?

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. 编辑2:稍微搜索一下注册表后,我发现NI安装了自己的visual c ++ 2010可再发行版程序,但是它没有包含在“添加或删除程序”列表中。 I've uninstalled this and hopefully the sdk will install properly. 我已经卸载了这个,希望sdk可以正常安装。

Edit 3: No luck, still getting the same error. 编辑3:没有运气,仍然得到同样的错误。 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. 我可以在注册表中找到其他2010可再发行组件,但尝试手动执行卸载字符串只是告诉我我只能在已安装的软件包上运行它。 This would be much simpler if I knew how the vcredist finds currently installed redistributions. 如果我知道vcredist如何找到当前安装的重新分发,这将更加简单。

解决方案:

参考: https://stackoom.com/en/question/1JFyw
{{o.name}}
{{m.name}}
  • 转载自:https://my.oschina.net/u/4428122/blog/5393801
  • 留言