Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error 0x80004003 during VS 2017 RC install

I'm running Windows 10, no pending updates, I've run sfc /scan now and DISM.exe /Online /Cleanup-image /Restorehealth neither of which reported issues. I've tried installing enterprise, professional and community and built the local installer with the --layout flag for professional all of which produce the same error. I have also tried uninstalling visual studio 2015 enterprise and a variety of other visual studio bits, resharper and ncrunch.

[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.
like image 552
Miniver Cheevy Avatar asked Nov 20 '16 02:11

Miniver Cheevy


3 Answers

From 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

like image 148
ta.speot.is Avatar answered Nov 15 '22 07:11

ta.speot.is


I've also had this problem, but I noticed that if you go to %programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe and run that (in command prompt as Admin with -full) and then reinstall, everything works great. If you already removed that directory you can just launch the installer but instead of choose products you just close it again, and then you can go to folder above and run the InstallCleanup.exe -full. In my case this happened when my computer died in the middle of the upgrade.

like image 23
Granlund Avatar answered Nov 15 '22 05:11

Granlund


1) uninstall Microsoft Visual Studio from the Control Panel
2) delete C:\Program Files\Microsoft Visual Studio
3) delete C:\ProgramData\Microsoft\Visual Studio\Setup
4) delete C:\ProgramData\Microsoft\Visual Studio\Packages

like image 1
etwina Avatar answered Nov 15 '22 06:11

etwina