if i deleted the file of visual studio manually how can i reinstall

Minzhang Chen 0 Reputation points
2025-01-01T05:18:21.3366667+00:00

Dear Sir or Madam,

I am building an environment to run a Python 3.6 code, but my visual studio is in 2022. So I want to install Visual Studio 2017. Chatgpt told me after the uninstall tool I needed to delete the files named Visual Studio manually, I did that after using all uninstall.exe files. now I can not reinstall 2022 nor install 2017 because the redistributable still tells me another version is installed. What should I do now? I want to install the 2017 version.

Best regards

Developer technologies | Visual Studio | Setup
Developer technologies | Visual Studio | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2025-01-01T06:47:32.5766667+00:00

    Hi @Minzhang Chen, 

    Welcome to Microsoft Q&A! 

    Please uninstall all the Visual C++ Redistributable items in Programs and Features. Then, try to install the VS2017 again. 

    If it doesn’t work, I suspect your VS is not uninstalled cleanly. You can try the following steps to do a clean uninstallation:

    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

    %temp% 

    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 

    1. Download the VS2017 Community from https://aka.ms/vs/15/release/vs_community.exe and run it as administrator. 

    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.