我试图打开Visual Studio,但它给出了一个错误:

在进行设置时无法运行

在我重新启动机器之前,它运行正常。我已经安装了这个版本从过去的一年。


当前回答

我今天遇到了同样的问题(VS 2015更新3)。注意到服务“VSStandardCollectorService140”被停止了。(我昨天登录时出现蓝屏错误。可能与此有关)。重新启动这个服务,它正在工作

其他回答

不完全是对最初问题的回答,但如果你真的需要在安装过程中运行VS,你可以使用未记录的/AllowDuringSetup命令行开关(风险自负)。

很可能Visual Studio正在更新,就像错误消息暗示的那样,如果你等待几分钟更新完成,你应该能够再次运行Visual Studio而没有问题。

If the problem persists or if you're just curious, open up your task manager and see if there is anything related to (Microsoft) Visual Studio running but don't just kill the process. Check instead if the process is using any resources - if it has a high I/O count, then it's actually updating and you should let it do its thing. If CPU-usage and memory usage remain mostly constant and there is no disk activity for the process for several minutes, this could mean that the process is stuck. You might have to kill it, but proceed with caution. Hopefully if this is an update for Visual Studio, the process name should include a version number or some sort of indication of what kind of update is being applied that you can use to search for more information through a search engine or through Microsoft's online resources.

启动任务管理器并关闭Windows安装程序。

当我试图启动Visual Studio时,就发生了这种情况。

我无法看到任何Visual Studio或安装程序进程在任务管理器中运行,但我等了大约5分钟,再试一次,它打开了。

在我的情况下,我使用的是2019版。

我想装置是在后台进行的。过一会儿门就开了。如果通过查看安装程序有一个丢失的包,您也可以尝试安装它。