visual studio installer installation/reinstallation problem

wong david 0 Reputation points
2023-06-28T15:55:38.5533333+00:00

hello:

   recently I install a visual studio 2022 preview, but later i find that i have installed it on default drive c:

and i want to uninstall and reinstall, this time i install, I find the visual studio installer do not run and go to the installation page, then i manually try to uninstall the previously installed version, i directly deleted the visual studio folder, trying to install again, the installer still do not startup, i download the software called windows install cleanup, clean the remnants, i tried to install the visual studio or reinstall visual studio installer, still does not work, could anyone tell me how to reinstall windows 10. thanks

Developer technologies | Visual Studio | Setup
Developer technologies | .NET | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,441 Reputation points Microsoft External Staff
    2023-06-29T02:23:19.2333333+00:00

    Hello @wong david ,

    Welcome to Microsoft Q&A forum.

    This document: Reinstall Windows shows detailed steps for reinstalling Windows 10, please check it.

    Besides, here are the steps for removing Visual Studio manually(except using InstallCleanup.exe tool):

    1. Remove/Rename following folders. C:\Program Files (x86)\Microsoft Visual Studio C:\Program Files\Microsoft Visual Studio %programdata%\Microsoft\visualstudio\packages
    2. Back up and remove following Registry keys if they exist. HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\VisualStudio\Setup HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\Setup HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\Setup
    3. Clean other VS cache by removing/renaming ComponentModelCache folder in C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_xxxxxxxx folder, removing/renaming %temp% folder(you may need to reboot your machine before renaming %temp% folder).

    BTW, as a tip, installing everything of VS on another drive(not C drive) is not possible, see this ticket: Install everything of VS on another drive. For changing the installation location of VS, see this document: Select the installation location

    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.


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.