vs shell installation has failed with exit code 1638.

You may receive the following error while installing MSSQL 2017 on Windows 2012 R2 Server.

vs shell installation has failed with exit code 1638

This error occurs because Visual Studio 2017 already installed before the SQL Server installation.

  1. Go to Control Panel >> Programme >> Programme and Features.

  2. Uninstall the Microsoft Visual C++ 2017 Redistributable (x86) and (x64) as per the below screen capture.

  3. Try to install the SQL Server again.

  4. You must select the Database Engine Services while installation of SQL Server without fail.

          Installation should be completed without any issue.


  1. Now, Reinstall the Microsoft Visual C++ 2017 Redistributable (x86) and (x64).

Related Articles

How to fix “Reporting Services Catalog Database File Existence” error while installing SQL Server?

You may receive the below error while installing the SQL server on your windows system. This...

How to fix an error "change password failed for login sa"?

Sometimes you receive following error while trying to reset MS SQL sa password via SQL Management...

Fix : Server Unable to load user-specified certificate. The server will not accept a connection

You may encounter this error when you attempt to start the MSSQL service. This error occurs when...

How to change password for MS SQL admin user?

Following tutorial will guide you to reset the MS SQL server sa user password. We assume that you...

How to use MSSQL Activity Monitor to find the most expensive query?

A slow and long running SQL query execution consumes much processor, memory, and disk of your...

  • 6 Users Found This Useful

Was this answer helpful?