Folders appear on desktop screen after installing Visual Studio Community 2022, even after none of the selected installation locations in setup were the desktop screen. How can I prevent this when I re-install?

Les 0 Reputation points
2024-01-22T08:39:36.7033333+00:00

User's image

These are the folders that appear after installing. I have had VS 2022 before and I'm lost as to what settings I can change to stop the folders being located here when I reinstall again.

Developer technologies Visual Studio Setup
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2024-01-23T04:25:33.26+00:00

    Hi @Les, 

    Welcome to Microsoft Q&A! 

    It seems that these folders are from different locations. Have you changed your registry key before?

    You can restart your pc, right-click on desktop and click “Refresh” to check it again.   Please open your registry editor and navigate to the following registry key:

    Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders 

    Please check if there is a problem with these locations, especially Desktop

    I suggest you do a clean uninstallation using the following steps:

    1. Manually delete any leftover install and cache folder you previously installed to:

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

    %programdata%\Microsoft\visualstudio\packages

    C:\Program Files\Microsoft Visual Studio

    C:\Users<UserName>\AppData\Local\Microsoft\VisualStudio 

    1. Delete the setup registry key, which was set when you first installed (Maybe there is only one key, please check one by one.):

    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Setup

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup

    HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup 

    Then, reinstall VS and check that these folders display properly. 

    Sincerely,

    Anna


    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

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.