Share via

How to uninstall visual studio 2022 and all its components when I couldn't open the Installer?

Cappi Lau 0 Reputation points
2023-07-15T19:22:19.0166667+00:00

I wanted to uninstall Visual Studio and all components that came with it as my C drive is running out of space and I barely use VS anyway, but while uninstalling, it had to update VS, and my C drive just ran out of space, so the uninstalling was halted. I then closed the installer and closed all the other windows, but I couldn't open the Installer again even after a restart of my whole PC. How do I uninstall VS and everything that came with it in this situation?

Developer technologies | Visual Studio | Setup
0 comments No comments

3 answers

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,826 Reputation points Microsoft External Staff
    2023-07-17T05:42:35.51+00:00

    Hello @Cappi Lau ,

    Welcome to Microsoft Q&A forum.

    If all above don’t work, you may consider trying to remove VS manually.

    Remove following folders and Registry if they exist(please back up them before removing):

    For folders:

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

    C:\Program Files\Microsoft Visual Studio

    %programdata%\Microsoft\visualstudio\packages

    For Registry Keys:

    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Setup

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup

    For cache files/folders:

    C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_xxxxxxxx\ComponentModelCache

    %temp%(you may need to reboot your machine before removing/renaming the Temp folder)

    If you installed some other program/extensions separately, you can also try to uninstall them from Control Panel.

    BTW, currently, you can’t install everything of Visual Studio to another drive. Some parts of VS need to be installed in C drive, so you may keep enough space in your C drive(Install everything of VS on another drive).

    Sincerely,

    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.

    0 comments No comments

  2. RLWA32 52,441 Reputation points
    2023-07-15T20:28:49.55+00:00
    0 comments No comments

  3. Viorel 126.9K Reputation points
    2023-07-15T19:29:05.8233333+00:00

    Try to use the Control Panel (using Search feature of Windows). It includes the “Uninstall a program”. Find the Visual Studio and Visual Studio Installer in the list.

    0 comments No comments

Your answer

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