Hello @Apple Pine ,
Welcome to Microsoft Q&A forum.
I suggest you firstly try to reinstall VS Installer manually. You can navigate to this "Installer" folder C:\Program Files (x86)\Microsoft Visual Studio\Installer
. Rename it from "Installer" to "Installer_backup", then download a new VS setup file from here: Downloads. Put it to a new empty folder then right-click the new setup file and run it as administrator. The VS Installer will be reinstalled, VS won’t be affected.
If reinstalling VS Installer doesn’t work, please check following points:
- Navigate to
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config
, find the machine.config file, try to backup it and replace it with machine.config.default file(rename machine.config to machine.config_backup, copy the machine.config.default file, paste it in the same directory and rename the machine.config - Copy.default file to machine.config). Check the VS Installer again. - Try to reboot your machine, directly navigate to
C:\Users\username\AppData\Local\Temp
folder, rename the Temp folder from "Temp" to "Temp_backup" and check again. - Check the installed antivirus, security management software, proxy and group policy. Make sure that they won’t block VS Installer from launching/updating/detecting(VS)/connecting(web). Temporarily disable them or reinstall them to test, if possible.
- In case some system files are corrupted or missing, try to run
DISM.exe /Online /Cleanup-image /Restorehealth
command in CMD(run CMD as admin and then run the command). After the command finishes running, runsfc /scannow
command.
Feel free to let us know the results.
Best Regards,
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.