Microsoft visual studio “setup blocked”

前端 未结 6 1232
逝去的感伤
逝去的感伤 2020-12-02 23:02

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

6条回答
  •  隐瞒了意图╮
    2020-12-03 00:01

    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
    

提交回复
热议问题