Cannot open Visual Studio - throw error 'cannot run when setup is in progress'
I am trying to open Visual Studio, but it is giving an error:
cannot run when set up is in progress
It was running fine before when I restarted my machine. I have already installed this version from past one year.
Try to check Task Manager and kill any process related to Visual Studio (any version).
Update:
as many people mentioned in the comments it is better to wait a while until those processes end themselves
I had this problem with Visual Studio 2017. There were processes in Task Manager named VSIXAutoUpdate.exe
. I watched Task Manager and they were spawning and despawning. A few times, a Visual Studio 2017 process would spawn and despawn.
After VSIX Auto Updater stopped showing up in Task Manager, it had applied all of it's background updates and I was able to launch Visual Studio.
I wouldn't recommend killing these processes in the middle of them installing updates, like other answers to this question suggest. Just wait until they finish by watching Task Manager.
Not exactly an answer to the original question, but if you really need to run VS during setup, you can use the undocumented /AllowDuringSetup
command line switch (at your own risk).