有关如何处理此错误的任何建议:
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快递
> 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
解决方法
我在使用sql Server 2017 Developer时遇到了这个问题,看起来只是sql Server安装包人员的计划不好.问题是Visual Studio 2017安装Microsoft Visual C 2017可再发行组件(x86)和(x64)并且sql Server安装尝试安装Microsoft Visual C 2015 Redistributables,但它不能,因为sql Server安装不允许您是否安装了安装了较新版本的旧版本.
这个Microsoft Support article提供了他们对问题的解释,以及他们推荐的解决方法.
解决方案1:在安装Visual Studio 2017之前先安装sql Server.
解决方案2(我做了什么):
>卸载Microsoft Visual C 2017可再发行组件(x86)和(x64),
>安装sql Server,
>然后重新安装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的其他命名实例时,可能必须重复这些步骤.