15

I am trying to modify my Visual Studio by adding Python development and Node.js Development, but it keeps saying "Sorry, something went wrong - The install operation failed" and it doesn't download and install these features.

Same happens when I'm trying to uninstall already installed elements like .NET desktop development or when I'm trying to uninstall Visual Studio or repair it.

I have tried multiple solutions, but all of them didn't work unfortunately.

Can anyone help me please? I would really appreciate it.

Thank you.

1
  • Many conditions may cause this issue, please make sure that there isn’t any other antivirus software/group policy/extension which impacts the installation, and check if there are any pending Windows Updates(if yes, updating Windows OS first). Also please reboot your machine and try again. If you can collect the VS setup log, it will be useful to check the details of this error.
    – Tianyu
    Commented Mar 17, 2022 at 5:57

2 Answers 2

33

The installer downloaded a vs_setup_boostrapper.exe to %temp%\vs\setup<random> directory. If you run that file manually, then it will get past the roadblock and popup a dialog that tells you you're missing a required --productid parameter. Ignore that, exit, and then kill any setup.exe processes still running. (For me the vs installer locks up when it fails, and always has two setup.exe processes that must be killed.) At this point you can just run the vs installer normally, and it will work correctly.

8
  • Can confirm that this actually works (at least for me). Thank you @JustinMichel for answering this older question.
    – Venick
    Commented Oct 16, 2022 at 23:45
  • This worked for me. I was constantly getting the Sorry, something went wrong error in the visual studio installer when doing any update or modification.
    – Valeklosse
    Commented Oct 21, 2022 at 9:45
  • 3
    win+R and run %temp%\vs\setup to get there quickly Commented Nov 23, 2022 at 0:54
  • Thank you so much @justinMichel! MS Support was not any help.
    – John
    Commented Nov 25, 2022 at 16:35
  • 1
    File did exist but got the same error as @AbdulHameed. Moving the file fixed this, however this dit not unlock the installation. The solution of Uttam worked, just downloaded a new installer and it was unlocked and I could use visual studio again.
    – Déjà vu
    Commented Dec 13, 2023 at 9:10
3

download the latest version https://visualstudio.microsoft.com/downloads/

of same visual studio installer and install (only installer). thats it. enter image description here

3
  • 1
    I didn't have a vs_setup_boostrapper.exe in my temp directory (as referenced in the top answer), but this answer worked. The downloaded installer ran no problem.
    – DanM7
    Commented Aug 24, 2023 at 18:55
  • I did have the file in my temp directory but running it did not unlock my visual studio. Downloading the installer and running it fixed it for me, thanks!
    – Déjà vu
    Commented Dec 13, 2023 at 9:11
  • no effect, same thing
    – tribbloid
    Commented Jul 8 at 1:05

Not the answer you're looking for? Browse other questions tagged or ask your own question.