一尘不染

帮助安装 SQL Server 2017 - VS Shell 安装失败,退出代码为 1638

javascript

有关如何处理此错误的任何建议:

TITLE: Microsoft SQL Server 2017 Setup
------------------------------

The following error has occurred:

VS Shell installation has failed with exit code 1638.

For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=0x5B39C8B9%25401434%25403

------------------------------
BUTTONS:

OK
------------------------------

这是一台正在运行的新笔记本电脑

  • SQL Server 2016 express
  • Visual Studio 2017
  • SSMS 2017

我尝试卸载与 SQL Server 或 Visual Studio 相关的任何内容。

日志:[3500:3970][2017-11-03T16:25:20]e000:错误 0x80070666:安装较新版本时无法安装产品。

Detailed results:
  Feature:                       Full-Text and Semantic Extractions for Search
  Status:                        Failed
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, and then try the setup process again.
  Component name:                Microsoft Visual C++ 2015 Redistributable
  Component error code:          1638
  Component log file:            C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20171103_162358\VCRuntime140_x64_Cpu64_1.log
  Error description:             VS Shell installation has failed with exit code 1638.
  Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=VCRuntime140_x64%40Install%400x1638

  Feature:                       Database Engine Services
  Status:                        Failed
  Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
  Next Step:                     Use the following information to resolve the error, and then try the setup process again.
  Component name:                Microsoft Visual C++ 2015 Redistributable
  Component error code:          1638
  Component log file:            C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20171103_162358\VCRuntime140_x64_Cpu64_1.log
  Error description:             VS Shell installation has failed with exit code 1638.
  Error help link:               https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=VCRuntime140_x64%40Install%400x1638

阅读 84

收藏
2022-10-23

共1个答案

一尘不染

我在使用 SQL Server 2017 Developer 时也遇到了这个问题,这似乎只是 SQL Server 安装包人员的糟糕计划。问题是 Visual Studio 2017 安装了 Microsoft Visual C 2017 Redistributable (x86) 和 (x64),而 SQL Server 安装尝试安装 Microsoft Visual C 2015 Redistributables,因为 SQL Server 安装不允许您安装较旧的版本并安装较新的版本。

这篇Microsoft 支持文章介绍了他们对问题的解释,以及他们推荐的解决方法。

解决方案 1:在安装 Visual Studio 2017 之前先安装 SQL Server。

解决方案2(我做了什么):

  1. 卸载 Microsoft Visual C++ 2017 Redistributable (x86) 和 (x64),
  2. 安装 SQL Server,
  3. 然后重新安装 Microsoft Visual C++ 2017 Redistributable (x86) 和 (x64)。

它们有点难找,所以这里是直接链接:

X64:https ://go.microsoft.com/fwlink/?LinkId=746572

x86:https ://go.microsoft.com/fwlink/?LinkId=746571

注意:如果您根本没有安装 Microsoft Visual C++ 2017 Redistributable,只需从上述链接之一安装它,然后重试安装 SQL Server。它现在应该可以工作了。


在安装 SQL Server 2017 的其他命名实例时,您可能必须重复这些步骤。

2022-10-23