vs shell installation has failed with exit code 1638

14,505

Solution 1

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)

Solution 2

This Error means 1-Another version of this program is already installed 2-Visual Studio 2017 Is In Installing Level And Not Complete 3-Visual Studio 2017 installed (Not For All) If You Have Other Version . Remove Or Update The SSMS. If Your Visual Studio In Installing Level. Wait To Complete And Then Try To Setup Else To fix the issue, use the following workarounds:

Repair the x64 version of Microsoft Visual C++ 2017 Redistributable from Add or remove programs by using following steps:

Open Add or remove programs. Find and select Microsoft Visual C++ 2017 Redistributable (x64). Click the Change button. Click the Repair button. If you encounter this issue when installing TFS, you can start VC_redist.x64.exe from the TFS installation files, and then select repair. Hope This Help You To Fix Microsoft Support Article

Share:
14,505
Hiren Parghi
Author by

Hiren Parghi

Technologies Known : AWS Linux Shell-scripting Chef Ansible CI-CD Jenkins Kubernetes Terraform Python Groovy Scripting Packer Helm-chart

Updated on July 24, 2022

Comments

  • Hiren Parghi
    Hiren Parghi almost 2 years

    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

  • Snapper
    Snapper almost 6 years
    Uninstalling Microsoft Visual C++ 2017 as you mentioned and installing the C++ 2015 did the trick in my case.