Search code examples
sql-serverwindows-server-2012-r2

vs shell installation has failed with exit code 1638


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


Solution

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