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).

  • 2 Users Found This Useful

Was this answer helpful?

Related Articles

How to Backup MSSQL Database from SQL Server Management Studio?

To take MS SQL database backup, first you need to connect to MS SQL Server through SQL Server...

How to change the port for MSSQL Server 2008?

In Windows VPS, 1533 is the default port for MSSQL Server. Following steps will guide you to...

How to create a Database (Asp .net or Other) on MSSQL Server?

If you have a Windows VPS / Dedicated server with MSSQL Server and WebsitePanel installed, you...

How to Create MS SQL Database Through SQL Server Management Studio?

This article will assist you to create MS SQL database through SQL Server Management Studio....

Microsoft SQL Server 2014 Recommendation

The SQL Server 2014 Express is yet another feature-rich data management system from Microsoft....