'Setup requires the computer to be restarted before visual studio can run in VS2019

My visual studio is working fine until past midnight and suddenly crashed this morning with the below error. The solution is pretty easy; you don't have to reinstall your vs2019. Simply search "Visual Studio Installer" then you will see vs2019 and click on Restart that's it. enter image description here



Solution 1:[1]

  1. Press Windows (Button on your keyboard)+ R (to open up the RUN application)
  2. Type "regedit" (this will open up an application that will allow you to edit the Registry )
  3. If you are using a 64bit Visual Studio copy and paste the path below in the Registry Editor path finder

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup\Reboot

  1. Before you do anything, backup the Registry by going to File then Export
  2. After you backup the registry, DELETE found in Reboot under Setup.

Solution 2:[2]

I found the answer very hard way so try to help others here. Simply search "Visual Studio Installer" then you will see vs2019 and click on Restart that's it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Seyed Reza Dadrezaei
Solution 2 Everest