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.
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:
- C:\Program Files\Microsoft Visual Studio
- C:\ProgramData\Microsoft\VisualStudio
- %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
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With