Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server 2017 Express Installation fails

I am trying to install SQL Server 2017 Express on Windows 10 and it is failing.

Here is the details it shows me after failure:

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.

I am Windows 10 and have Visual Studio 2017 installed. I'm thinking the problem could be I installed SQL Server Management Studio 2017 before I installed SQL Server.

I have the same setup at home but I installed SQL Server first and then SSMS and everything works fine.

The other difference is at home in the installation dialog it says something the affect that C++ Redistribuble is already installed but at work where it is failing it says it is to be installed in hte list of components.

like image 767
Sam Avatar asked Oct 18 '17 12:10

Sam


People also ask

How do I fix a SQL Server installation error?

Launch the SQL Server Setup program (setup.exe) from SQL Server installation media. After prerequisites and system verification, the Setup program will display the SQL Server Installation Center page. Click Maintenance in the left-hand navigation area, and then click Repair to start the repair operation.

Why SQL Server is not installing?

See whether you have clearly uninstalled the previous SQL Server setup and try again. Did you modify the registry setting earlier. If so, please revert the changes and try the installation. Eg., changing the default installation to D:, instead of C: etc.


2 Answers

The problem is likely that there's a newer version of the Visual C++ Redistributable than SQL Server is trying to install, e.g., from Visual Studio 2017. So another way to address this, if you don't need the latest C++ redistributable, is to go to Add or Remove Programs and uninstall all references to Visual C++ 2017 Redistributable. After this, the SQL Server installation should proceed without errors.

like image 129
Luc Reid Avatar answered Oct 15 '22 18:10

Luc Reid


I had this error before all I did was(using Win10 x64):

Go to control panel-> Select Programs -> Programs and Features -> Search "c++" -> In the list select Visual C++ 2017(or your version error) Redistributable -> right click select "change" -> select repair.

After that I was able to continue and successfully installed SQL Server Express 2017.

Note: Some requires uninstall and reinstall again therefore if the above procedure doesn't work just try reinstalling it.

like image 38
babidi Avatar answered Oct 15 '22 20:10

babidi