Error while Visual Studio Installation - Existing Installation broken - Not able to launch VS Installer.

Himanshu Shukla 0 Reputation points
2024-02-29T13:45:24.53+00:00

I am not able to use/install Visual Studio. When I try opening Visual Studio Installer, it displays the error “Sorry, something went wrong” and nothing happens. I was able to use the Visual Studio on my laptop seamlessly. While removing some temporary files yesterday, it seems, some “important” temp files were removed. And, I am not able to launch even the Visual Studio Installer now. I've tried the following steps already:

  1. InstallCleanup.exe
  2. Run following command for cleanup:
    1. DISM.exe /Online /Cleanup-image /Restorehealth
    2. sfc /scannow
  3. Windows update.

But, nothing seems to be working and I am unable to use my Visual Studio. Request some help in getting this issue resolved.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,043 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 30,346 Reputation points Microsoft Vendor
    2024-03-01T03:26:45.24+00:00

    Hello @Himanshu Shukla,

    Welcome to Microsoft Q&A forum.

    Do other applications run correctly on your machine except Visual Studio?

    If the deleted temp files can be recovered, please recover them.

    Please try to manually remove VS firstly. Remove following folders and Registry keys:

    C:\Program Files (x86)\Microsoft Visual Studio

    C:\Program Files\Microsoft Visual Studio

    %programdata%\Microsoft\visualstudio\packages

    %Temp%(you can just rename this folder, instead of removing it. A reboot may be needed)

    C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX

    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Setup

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup

    After that, reboot your machine and download a new VS bootstrapper file then run it as administrator.

    If manually removing Visual Studio doesn’t work, please reproduce this issue, download and run this collect.exe tool. Wait for several seconds, then navigate to %Temp%, find a file called vslogs.zip, extract files and open subfolder called Temp, check the files start with dd_installer and dd_setup. You can search for key word "error" and share us the detailed error code/message for further check.

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.