VS 2017 RC安装时报错0x80004003

Error 0x80004003 during VS 2017 RC install

我正在 运行ning Windows 10,没有待处理的更新,我现在 运行 sfc /scan 和 DISM.exe /Online /Cleanup-image / Restorehealth 均未报告问题。我已经尝试安装企业版、专业版和社区版,并使用 --layout 标志为专业版构建了本地安装程序,所有这些都会产生相同的错误。我还尝试卸载 visual studio 2015 enterprise 和各种其他 visual studio 位、resharper 和 nc运行ch。

[3604:0011][2016-11-19T11:06:58] Error 0x80004003: 
   0x80004003 at Microsoft.VisualStudio.Setup.Cache.InstanceRepository.GetInstance()
   at Microsoft.VisualStudio.Setup.Cache.CacheRepository.<GetInstances>d__25.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   at Microsoft.VisualStudio.Setup.Engine.VerifyInstallationPath(IServiceProvider services, String installationPath, IInstance instance, IQuery query)
   at Microsoft.VisualStudio.Setup.Engine.Install(Product product, String destination, CancellationToken token)Object reference not set to an instance of an object.

来自this comment

After many times of trying to install the new preview, I at last managed to set it down in my computer. Here I share what I have done.

First you must uninstall the installed Microsoft Visual Studio Installer from the Control Panel — Programms–Uninstall Or Modify Programs

Then delete the installed files related to the preview version of VisualStudio15 in the following folders:

  1. C:\Program Files\Microsoft Visual Studio
  2. C:\ProgramData\Microsoft\VisualStudio
  3. %LocalAppData%\Microsoft\VisualStudio

Download and install the vs_Enterprise.exe

When complete downloading files needed, you can install them, then you see the visual studio IDE

1) 从控制面板中卸载 Microsoft Visual Studio
2) 删除 C:\Program Files\Microsoft Visual Studio
3) 删除 C:\ProgramData\Microsoft\VisualStudio\Setup
4) 删除 C:\ProgramData\Microsoft\VisualStudio\Packages

我也遇到过这个问题,但我注意到如果您转到 %programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe 和 运行(在命令提示符下以管理员身份使用 -full)然后重新安装,一切正常。如果您已经删除了该目录,您可以只启动安装程序,而不是 选择产品 ,您只需再次关闭它,然后您可以转到上面的文件夹和 运行 InstallCleanup.exe -full。就我而言,这发生在我的计算机在升级过程中死机时。