{"id":2379,"date":"2020-01-16T21:13:14","date_gmt":"2020-01-16T21:13:14","guid":{"rendered":"http:\/\/galhano.com\/blog\/?p=2379"},"modified":"2026-01-20T10:39:30","modified_gmt":"2026-01-20T10:39:30","slug":"upgrading-to-sql-server-2017-vs-shell-installation-has-failed-with-exit-code-1638","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=2379","title":{"rendered":"Upgrading to  SQL Server 2017 &#8211; VS Shell installation has failed with exit code 1638"},"content":{"rendered":"\n<p>I experienced this problem as well with SQL Server 2017 \nDeveloper and it appears to be just bad planning on the part of the SQL \nServer installation package people.  The problem is that Visual Studio \n2017 installs the Microsoft Visual C++ 2017 Redistributable (x86) and \n(x64) and the SQL Server installation tries to install the Microsoft \nVisual C++ 2015 Redistributables, which it can&#8217;t because the SQL Server \ninstallation doesn&#8217;t allow you to install an older version with the \nnewer version installed.<\/p>\n\n\n\n<p>This <a href=\"https:\/\/support.microsoft.com\/en-us\/help\/4092997\/vc-2015-redistributable-install-error-1638-when-newer-version-present\">Microsoft Support article<\/a> presents their explanation of the problem, and their recommended workarounds.<\/p>\n\n\n\n<p>Solution 1: Install SQL Server first before installing Visual Studio 2017.<\/p>\n\n\n\n<p>Solution 2 (what I did): <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Uninstall the Microsoft Visual C++ 2017 Redistributable (x86) and (x64), <\/li><li>install SQL Server, <\/li><li>then reinstall the Microsoft Visual C++ 2017 Redistributable (x86) and (x64).<\/li><\/ol>\n\n\n\n<p>They are a little hard to find, so here are the direct links:<\/p>\n\n\n\n<p>X64: <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=746572\">https:\/\/go.microsoft.com\/fwlink\/?LinkId=746572<\/a><\/p>\n\n\n\n<p>x86: <a href=\"https:\/\/go.microsoft.com\/fwlink\/?LinkId=746571\">https:\/\/go.microsoft.com\/fwlink\/?LinkId=746571<\/a><\/p>\n\n\n\n<p>Note: If you don&#8217;t have Microsoft Visual C++ 2017 Redistributable  installed <\/p>\n\n\n\n<p>at all, just install it from one of the above links, and retry  installing SQL Server. It should work now.<\/p>\n\n\n\n<p>Source link:<a href=\"https:\/\/dba.stackexchange.com\/questions\/190090\/help-installing-sql-server-2017-vs-shell-installation-has-failed-with-exit-cod\">https:\/\/dba.stackexchange.com\/questions\/190090\/help-installing-sql-server-2017-vs-shell-installation-has-failed-with-exit-cod<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I experienced this problem as well with SQL Server 2017 Developer and it appears to be just bad planning on the part of the SQL Server installation package people. The problem is that Visual Studio 2017 installs the Microsoft Visual C++ 2017 Redistributable (x86) and (x64) and the SQL Server installation tries to install the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,9],"tags":[],"class_list":["post-2379","post","type-post","status-publish","format-standard","hentry","category-microsoft","category-sql-server","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2379","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2379"}],"version-history":[{"count":1,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2379\/revisions"}],"predecessor-version":[{"id":2380,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2379\/revisions\/2380"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2379"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2379"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2379"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}