[英]SQL Server 2017 Express Installation fails
我正在嘗試在 Windows 10 上安裝 SQL Server 2017 Express 但它失敗了。
這是失敗后它向我顯示的詳細信息:
Action required:
Use the following information to resolve the error, and then try the setup process again.
Feature failure reason:
An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Error details:
§ Error installing Microsoft Visual C++ 2015 Redistributable
VS Shell installation has failed with exit code 1638.
Error code: 1638
Log file: C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20171018_083459\VCRuntime140_x64_Cpu64_1.log
Visithttps://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 to get help on troubleshooting.
我是 Windows 10 並安裝了 Visual Studio 2017。 我在想問題可能是我在安裝 SQL Server 之前安裝了 SQL Server Management Studio 2017。
我在家里也有同樣的設置,但我先安裝了 SQL Server,然后安裝了 SSMS,一切正常。
另一個區別是在家里的安裝對話框中,它說明了 C++ Redistribuble 已經安裝的影響,但在工作中它失敗了,它說它要安裝在組件列表中。
問題很可能是比 SQL Server 嘗試安裝的 Visual C++ Redistributable 版本更新,例如,來自 Visual Studio 2017。因此,如果您不需要最新的 C++ Redistributable,另一種解決此問題的方法是添加或刪除程序並卸載對 Visual C++ 2017 Redistributable 的所有引用。 在此之后,SQL Server 安裝應該不會出錯。
在我所做的一切之前,我遇到了這個錯誤(使用 Win10 x64):
轉到控制面板-> 選擇程序->程序和功能-> 搜索“ c++ ” -> 在列表中選擇Visual C++ 2017 (或您的版本錯誤) Redistributable -> 右鍵單擊選擇“更改” -> 選擇修復。
之后,我能夠繼續並成功安裝 SQL Server Express 2017。
注意:有些需要卸載並重新安裝,因此如果上述過程不起作用,請嘗試重新安裝它。
我為我的環境想出了它。 如果您有 Visual Studio 2017,請返回安裝程序並安裝“ATL C++”工作負載。 現在,當您完成 SQL Server 2017 安裝時,它會說 C++ 已經安裝並且安裝將成功。
我得到了解決方案:
VC++ 2017
。VC++ 2015
VC++ 2015
SQL Server 2017
SSMS 2017
我還發現運行 Microsoft Visual C++ 可再發行組件的修復更正了該問題,並且能夠安裝 SQL 2017 RTM 累積更新 (CU) 23 KB5000685
從“程序和功能”選項中卸載以下內容修復了我的問題。
Microsoft Visual C++ 2015 Redistributable
MSSQL 2017 安裝完成后會自動添加。
首先確保你之前沒有安裝過SSMS,先安裝SQLSERVER,然后再安裝SSMS。 要解決此錯誤,只需卸載 MS Visual C++ Redistributable v13/v15/v17,因為它們已在您之前安裝 SSMS 時安裝。 再次運行安裝程序,它將繼續安裝。
我也有這個問題。 我只是從Add Remove Program
修復程序Microsoft Visual C++ 2017 Redistributable (x86) - 14.16.27029並且安裝Add Remove Program
運行沒有任何錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.