Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2017 RC Setup Operation Failed

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.

like image 822
user3124306 Avatar asked Dec 22 '16 07:12

user3124306


1 Answers

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.

like image 144
Sara Liu - MSFT Avatar answered Nov 09 '22 16:11

Sara Liu - MSFT