vs shell installation has failed with exit code 1638

Hiren Parghi picture Hiren Parghi · May 25, 2018 · Viewed 10.8k times · Source

I have received the following error while installing MSSQL 2017 on Windows 2012 R2.

vs shell installation has failed with exit code 1638

enter image description here

Answer

Husam Ebish picture Husam Ebish · Aug 7, 2018

You must install SQL Server first before installing Visual Studio 2017.

If you have already installed Visual Studio 2017, do not worry, just follow the steps below:

Uninstall the Microsoft Visual C++ 2017 Redistributable (x86) and (x64)

enter image description here

Then install SQL Server.

Do not forget to select "Database Engine Services"

enter image description here

Change "Startup Type" of SQL Server Browser from "Disabled" to "Automatic"

enter image description here

The installation will be done without any problems:

enter image description here

Then reinstall the Microsoft Visual C++ 2017 Redistributable (x86) and (x64)