2015-07-10 76 views
26

当我尝试安装微软视觉工作室2015时,它给出错误“设置被阻止”。告诉我:“在安装程序可以继续之前,需要重新启动计算机,请重新启动计算机并再次运行安装程序。” 这样它仍然无法正常工作...... 后我在Windows 10建立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

回答

35

似乎从Windows 8开始关闭并不会真正关闭计算机,而是让它休眠。这会导致安装程序需要操作的系统文件继续使用。

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

powercfg.exe /hibernate off 

它运行后,重新启动计算机并安装程序应该工作。您可以使用

powercfg.exe /hibernate on 
+0

你是男人! – dariogriffo

+0

它的工作很好的答案!但是当我尝试运行第二个命令进行休眠时,出现错误:出现意外错误(0x65b):执行期间函数失败。你有什么机会得到这个错误,你知道如何解决它吗? – CodeEngine

+2

@ omachu23你是否以管理员身份运行它? – gabrieljcs

1

您也可以转到控制面板;电源选项;选择电源按钮的功能;更改当前不可用的设置;然后取消选中“启用快速启动(推荐)”复选框,保存更改然后关闭。

6

你有两个选择:

  • 重新启动计算机(不关机!)

OR

+0

所以帮助!没什么可设置的。只需重置机器。所以tnx! – Dudi

0

我遇到了这个问题,但我的问题是完全不同的。

的问题是,我试图安装:

的Visual Studio 2015年更新1(x86和x64) - Web安装程序(多语言)

不:

的Visual Studio专业2015年更新1(x86和x64) - 网络安装(英文)

错误消息没有帮助,但在我的情况下,这意味着我没有安装2015,所以更新1无法应用。

MSDN论坛发帖此处获得更多信息:

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

1

我已经设法绕过在Windows 7 X64的同样的错误:

  • 清空Windows的Temp文件夹(通常C:\Windows\Temp)但保留所有文件使用
  • 执行重启
0

只需进入命令提示符并运行以下命令: SHUTDOWN/r/f/t 0