installation - 微软 Visual Studio "setup blocked"

标签 installation visual-studio-2015 windows-10 blocked

当我尝试安装 Microsoft Visual Studio 2015 时,它给出了“安装被阻止”错误。告诉我:“需要重新启动计算机才能继续安装。请重新启动计算机并再次运行安装程序。”
这样做后它仍然不起作用......
我使用的是 Windows 10 Build 10130
这是日志文件的最后一点:

    [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

thisthe full log

最佳答案

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

您可以通过以管理员身份运行以下命令来关闭休眠:

powercfg.exe /hibernate off

运行后,重新启动计算机,设置应该可以工作。您可以通过使用再次打开它
powercfg.exe /hibernate on

关于installation - 微软 Visual Studio "setup blocked",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31346692/

相关文章:

configuration - 在系统范围内安装 OPAM?

c++ - Visual Studio 2015 无法创建和编辑 c++ 项目

c# - 检查在后台任务中启动的下载操作的进度

windows-10 - 如何更改 Windows 10 中搜索结果的默认 View ?

installation - 如何从 CDROM(ISO 镜像)启动以使用 virsh 安装 guest 操作系统

visual-studio-2010 - 使用哪一个,Visual Studio 安装程序或 Inno 安装程序?

windows - 如何通过 Win API 调用或(更好)读取注册表值来读取 Windows 构建版本

visual-studio-2015 - Dot net core 1 Tooling Preview 离线安装器

oracle - SSDT for SSRS - 无法连接到数据源 'DataSource1'。所选数据扩展 ORACLE 未安装或无法加载

.net - 是否所有 UWP 应用在导航页面时都会泄漏内存?