Visual Studio 2017 RC安装操作失败 [英] Visual Studio 2017 RC Setup Operation Failed

查看:317
本文介绍了Visual Studio 2017 RC安装操作失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我首先尝试安装VS 2017 RC并在安装过程中出现问题。我试图修复安装,但它正在修复 - 我的计算机蓝色屏幕(可能与安装无关我运行了很多程序)。现在,每当我尝试安装VS 2017时 - 它会立即给我这个错误日志并说安装操作失败。我该怎么做才能解决这个问题?



错误日志:


[29cc :0004] [2016-12-22T07:39:53]错误0x80004003:
at Microsoft.VisualStudio.Setup.Cache.InstanceRepository.GetInstance()
at Microsoft.VisualStudio.Setup.Cache.CacheRepository。 d__27.MoveNext()
at System.Linq.Enumerable.FirstOrDefault [TSource](IEnumerable 1 source,Func 2谓词)
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)对象引用未设置为实例一个对象。


我尝试在VS开发人员社区发帖,但它立即被标记为重复并链接到链接到其他的其他重复项重复没有解决方案。

解决方案

请参阅错误消息,您可以尝试删除安装失败的现有VS 2017 RC,如下所示:


  1. 转到控制面板 - 程序和功能,如果有Microsoft Visual Studio 2017,请右键单击并选择卸载


  2. 尝试删除以下已安装的文件夹:(您可以在进行任何修改之前备份这些文件夹,以防我们需要回滚)


•转到文件夹:%ProgramData%\ Microsoft &\\VisualStudio并删除'Packages'文件夹和'Setup'文件夹(如果有)。



•转到Visual Studio安装文件夹(通常位于%ProgramFiles(x86)%\ Mesrosoft Visual Studio下)并删除文件夹2017



之后,确保Windows更新是最新的,清理%temp%文件夹并暂时禁用任何防病毒软件,重新启动计算机并重新运行VS 2017 RC安装程序再次作为管理员。


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.

解决方案

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.

这篇关于Visual Studio 2017 RC安装操作失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆