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

  • 6 Users Found This Useful

Was this answer helpful?

Related Articles

How to configure MSSQL server default language configuration option?

Recently, we faced strange issue wherein one of our customers was capturing error messages coming...

How to create a Database in MSSQL Server?

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

How to shrink MSSQL Database?

Important Note: We don't recommend to shrink your database. You can involve your Database...

Fix :: Reporting Service Error After Upgrade From MS SQL server from 2008 to 2012

Error Message Throwing Microsoft.ReportingServices.Diagnostics.Utilities....

How to install SQL Server Reporting Service (SSRS) on MSSQL 2014 Express Edition?

SQL Server Reporting Services is used for creating, publishing, and managing reports, and...