Visual Studio 2017 RC Setup Operation Failed

一个人想着一个人 提交于 2019-12-22 04:42:57

问题


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.


回答1:


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.




回答2:


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!



来源:https://stackoverflow.com/questions/41278054/visual-studio-2017-rc-setup-operation-failed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!