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:
- 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%
- 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
- 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.