Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / Visual-Studio

Resolving Installation Issues with Visual Studio 2017

5.00/5 (2 votes)
17 Feb 2017CPOL1 min read 10.6K  
How to resolve Installation Issues with Visual Studio 2017

Resolving Installation Issues with Visual Studio 2017

I've seen quite a few posts online regarding folks having issues installing Visual Studio 2017 after using previous versions of the IDE (such as the various pre-releases and RCs).

If this sounds like you, then you might want to follow some of the steps in this blog post to ensure that your next install goes smoothly.

Uninstalling Earlier Versions (for real)

Generally, the standard uninstall procedure should work as expected, so definitely try that before moving on. If that doesn't work and you find yourself unable to install or update the IDE afterwards, then you'll have to get your hands dirty.

If the Visual Studio 2017 installer isn't able to properly update your existing version (and specifically if you have an older RC release), then you can try the following steps to clear the slate before attempting a fresh install:

  1. Uninstall Visual Studio 2017 and the Visual Studio Installer.
  2. Delete the following directories:
    • C:\ProgramData\Microsoft\VisualStudio
    • %localappdata%\Microsoft\VisualStudio
    • %appdata%\Microsoft\VisualStudio
  3. Run the Registry Editor (regedit) and delete the following entries:
    • HKLM\SOFTWARE\Microsoft\VisualStudio\15.0
    • HKLM\SOFTWARE\WoW6432Node\Microsoft\VisualStudio\15.0
    • HKCU\SOFTWARE\Microsoft\VisualStudio\15.0

Those steps should clear the path for you, but if you find that you are still encountering installation issues, then you might have to pull out some bigger built-in guns.

Still Having Trouble?

If your issues are still persisting and you can't seem to get it installed, then there's another tool that comes with the Visual Studio installer that might be able to resolve things.

  1. Ensure that just the Visual Studio Installer has been installed (i.e., no Visual Studio 2017 instances).
  2. Run the following program with administrative privileges:
    • C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe

This should clean up anything that might still be lingering after the previous steps and allow to install a fresh version of Visual Studio 2017.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)