Microsoft Visual Studio“安装程序被阻止" [英] Microsoft visual studio "setup blocked"

查看:241
本文介绍了Microsoft Visual Studio“安装程序被阻止"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试安装Microsoft Visual Studio 2015时,出现错误安装程序已阻止".告诉我:必须先重新启动计算机,然后安装程序才能继续.请重新启动计算机,然后再次运行安装程序." 这样做后仍然不起作用... 我在Windows 10 Build 10130上 这是日志文件的最后一位:

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 restart the computer and run setup again." after doing so it still doesn't work... I'm on Windows 10 Build 10130 this is the last bit of the log file:

    [0A60:1530][2015-07-10T18:48:06]i101: Detected package: VSSetupUtility_Complete_vs_community, state: Absent, cached: None
    [0A60:1530][2015-07-10T18:48:06]i000: MUX:  Setup update feature is enabled. Evaluating conditions to determine whether to run setup update.
    [0A60:1530][2015-07-10T18:48:06]i000: MUX:  Checking http://go.microsoft.com/fwlink/?LinkID=500683 for update.
    [0A60:1530][2015-07-10T18:48:07]e000: MUX:  Exception: Info: Could not download update data.
    [0A60:1530][2015-07-10T18:48:07]e000: MUX:  WARNING: For security reasons DTD is prohibited in this XML document. To enable DTD processing set the ProhibitDtd property on XmlReaderSettings to false and pass the settings into XmlReader.Create method.
    [0A60:1530][2015-07-10T18:48:07]e000: MUX:  Stack:    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res, String arg)
       at System.Xml.XmlTextReaderImpl.ParseDoctypeDecl()
       at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
       at System.Xml.XmlDocument.Load(XmlReader reader)
       at Microsoft.Devdiv.Bootstrapper.DownloadManager.DownloadXml(String url, Int32& returnCode)
    [0A60:1530][2015-07-10T18:48:07]i000: MUX:  Failed to download the update xml file from http://go.microsoft.com/fwlink/?LinkID=500683 Setup will not be updated.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition '(VersionNT = v6.3) AND (WindowsBuildNumber < 9600)' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition 'CompatibilityMode = 0' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition 'NOT((VersionNT > v6.1) OR (VersionNT = v6.1 AND ServicePackLevel >= 1))' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition '(NOT IsLanguagePack) AND ( CurrentOperation = "Install" ) AND ( FLP_Version > v14.0.22823 )' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition 'RebootPending = 1' evaluates to true.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition 'NOT (IEsvcVersionExists) OR (IEsvcVersion < v10.0)' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition '(VersionNT < v6.2) AND ((NetworkAvailable = 0) OR (DisableRootAutoUpdate = 1)) AND NOT ((MicrosoftRootCertificateAuthority2011RootExists OR MicrosoftRootCertificateAuthority2011AuthRootExists) AND (MicrosoftRootCertificateAuthority2010RootExists OR MicrosoftRootCertificateAuthority2010AuthRootExists))' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition '( CurrentOperation = "Install" AND EnterpriseExists )' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition '( CurrentOperation = "Install" AND UltimateExists )' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition '( CurrentOperation = "Install" AND NOT EnterpriseExists AND ProfessionalExists)' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition '(VersionNT = v6.3) AND (KB2919355_amd64_CurrentState <> 112 AND KB2919355_x86_CurrentState <> 112)' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i052: Condition '(VersionNT = v6.3) AND (netfxfullredist_43_DetectKey < v4.5.22816)' evaluates to false.
    [0A60:1530][2015-07-10T18:48:07]i000: MUX:  Stop Block: SystemRebootPendingBlock : The computer needs to be restarted before setup can continue. Please restart the computer and run setup again.
    [0A60:1530][2015-07-10T18:48:07]i000: MUX:  Detect Completed
    [0A60:1530][2015-07-10T18:48:07]i000: MUX:  Wait for View to be loaded
    [0A60:139C][2015-07-10T18:48:07]i000: MUX:  Detect Completed, now create view
    [0A60:1530][2015-07-10T18:48:08]i000: MUX:  View loaded
    [0A60:1530][2015-07-10T18:48:08]i000: MUX:  Stop Block: SystemRebootPendingBlock : The computer needs to be restarted before setup can continue. Please restart the computer and run setup again.
    [0A60:1530][2015-07-10T18:48:08]i000: MUX:  Go to Blocker page.
    [0A60:1530][2015-07-10T18:48:08]i199: Detect complete, result: 0x0

推荐答案

似乎从Windows 8开始关闭实际上并没有关闭计算机,而是使计算机休眠.这将导致继续使用安装程序需要对其进行操作的系统文件.

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

这篇关于Microsoft Visual Studio“安装程序被阻止"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆