Unable to install or uninstall Visual Studio Installer 2022 Throws Error - Sorry, something went wrong

Nonni World

Visual Studio might show this error “Something went wrong” when installing for the first time, adding a new feature, or uninstalling.

There are number of reasons behind, some of the common reasons as below:

Check for Windows Updates and Restart

  • Before proceeding, ensure that your Windows OS is up to date.
  • Restart your computer to apply any pending updates.

Endpoint Security/ Any (Anti-Virus) Consideration

  • If you’re using Endpoint Security anti-virus software, consider temporarily uninstalling it.
  • Some users have reported success after removing Endpoint Security.

Check for Background Processes and Anti-Virus Software

  • Make sure there are no background process interfering with the installation.
  • Disable any anti-virus software temporarily during the installation process.
  • Some users have reported issues related to anti-virus software, so this step is crucial.

Check if any setup process running in the background.

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.

How to fix this, here are some tricks and lets hope this will fix the issue.

Manually Delete the Visual Studio Installer Folder.

  • Navigate to ‘C:\Program Files (x86)\Microsoft Visual Studio\Installer’.
  • Manually delete this folder.
  • This step helps ensure a clean installation.

Re-Download the Visual Studio Bootstrapper

  • Visit the Microsoft Visual Studio Downloads
  • Download the bootstrapper file for the version of Visual Studio you want to install.
  • Run the downloaded file as administrator.

Clean the Bootstrapper

  • InstallCleanup.exe -f
  • Download VS2022 from link provided.
  • No Pending Windows updates
  • DISM.exe /Online /Cleanup-image/Restorehealth
  • Sec /scan now
  • Tried to install again
  • Check if there are anything in the event viewer
  • Tried the .NET Framework Repair tool from here
  • There are no errors in the Event Viewer
  • Tried the .NET Framework Repair tool from Download here:
  • Tried deleting this folder - C:\Program Files\Microsoft Visual Studio\2022
  • Tried the steps from this post in the development community forum: https://developercommunity.visualstudio.com/t/sorry-something-went-wrong-vs2022/1687138#T-N1687341

Collect Log Files for Further Investigation

  • Download the ‘collect.exes’ tool provided by Microsoft.
  • Run the tool and locate the ‘vslogs.zip’ file in the ‘%Temp%’ folder.
  • Extract the zip file and check the ‘Temp’ folder for log files named like ‘dd_installer_XXXXX.log’ and ‘dd_setup_XXXXX.log’.
  • Share the detailed error messages from these logs with Microsoft support.

If none of the above solutions work, you might need to format your hard drive and reinstall Windows and Visual Studio. I had to do this myself once, and it worked after trying other methods first.

If you experiencing the similar issue or have any other workaround please let us know in the comment section. 

Post a Comment

Post a Comment (0)

#buttons=(Ok, Go it!) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Ok, Go it!
To Top