When I try to install Microsoft visual studio 2015 it gives the error \"Setup Blocked\". telling me:\"The computer needs to be restarted before setup can continue. Please re
I have managed to bypass the same error on Windows 7 x64 by:
C:\Windows\Temp
), but keeping all files in useJust go to command prompt and run the below: SHUTDOWN /r /f /t 0
I hit this issue but my problem was something completely different.
The issue was that I was trying to install:
Visual Studio 2015 Update 1 (x86 and x64) - Web Installer (Multiple Languages)
Not:
Visual Studio Professional 2015 with Update 1 (x86 and x64) - Web Installer (English)
The error message is not helpful, but in my case it meant that i didnt have 2015 installed, so the update 1 couldn't be applied.
msdn forum post here for more info:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/6c531ef3-6c95-4dc9-a9a3-d23cc95b09c3/vs2015-update-1-setup-blocked-update-1-does-not-apply-or-is-blocked-by-another-condition-on-your?forum=vssetup
It seems that from Windows 8 onward shutting down doesn't actually turns the computer off, but rather hibernates it. That causes system files which the installer needed to operate on to continue being used.
You can turn hibernation off by running the following command as an administrator:
powercfg.exe /hibernate off
After running it, restart the computer and the setup should work. You can turn it on again by using
powercfg.exe /hibernate on
You have 2 choices:
OR
You can also go to Control panel; power options; Choose what the power buttons do; Change settings that are currently unavailable; then uncheck the 'Turn on fast startup(recommended)' check box, save the changes then shut down.