Visual Studio 2017 RC Setup Operation Failed

7

I first tried to install VS 2017 RC and a problem occurred during installation. I tried to repair the installation but while it was repairing - my computer blue screened (probably unrelated to installation I was running a lot of programs). Now, whenever I try to install VS 2017 - it instantly gives me this error log and says 'Setup operation failed'. What do I do to fix this?

Error log:

[29cc:0004][2016-12-22T07:39:53] Error 0x80004003: at Microsoft.VisualStudio.Setup.Cache.InstanceRepository.GetInstance() at Microsoft.VisualStudio.Setup.Cache.CacheRepository.d__27.MoveNext() at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source, Func2 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.

I tried posting on VS developer community but it is instantly marked as duplicated and linked to other duplicates which link to other duplicates which have no solution.

visual-studio
installation
ide
development-environment
asked on Stack Overflow Dec 22, 2016 by user3124306 • edited Dec 22, 2016 by marc_s

2 Answers

21

Refer to the error message, you can try to remove the existing VS 2017 RC that install failed before as below:

  1. Go to Control Panel—Programs and Features, if there has ‘Microsoft Visual Studio 2017’, right click it and choose ‘Uninstall’

  2. Try to delete the following installed folders: (you can back up those folders before any modification, in case we need to roll back)

• Go to the folder: %ProgramData%\Microsoft\VisualStudio and delete the ‘Packages’ folder and ‘Setup’ folder if there has.

• Go to the Visual Studio installation folder (normally under %ProgramFiles(x86)%\Microsoft Visual Studio) and delete the folder ‘2017’

After that, make sure windows update is up-to-date, clean up the %temp% folder and temporarily disable any antivirus software, reboot the computer and re-run the VS 2017 RC installer as administrator again.

answered on Stack Overflow Dec 22, 2016 by Sara Liu - MSFT
0

A common problem is that when you go to the downloads page it automatically downloads the x64 version of VS. So, create a Dev account (free) then go to downloads from the dev homepage and select the version you want to download and check x86. Hope this helps!

answered on Stack Overflow Jun 20, 2017 by Evan Gertis

User contributions licensed under CC BY-SA 3.0