Hi @Snup Pandey,
Welcome to Microsoft Q&A forum.
Normally, you need to check following things:
- Make sure that you have enough permissions to install VS(right-click the setup file to run as administrator if necessary).
- Make sure that there’s nothing blocks you from installing VS, such as group policy, antivirus software, proxy and extensions.
- Make sure that all the system requirements have been met.
You may try following suggestions currently:
- Download the setup file from this link and save the setup file to another drive’s another clean folder. Right-click the setup file and run it as administrator.
- Update Windows OS and make sure that no Windows Update errors listed in Settings > Update & Security > Windows Update.
- Run CMD as administrator, and run
DISM.exe /Online /Cleanup-image /Restorehealth
command. Make sure that no errors prompted.
If VS Installer still cannot be installed, please download and run collect.exe tool. Go to %temp% and find the vslogs.zip file/folder, unzip it and check the files start with dd_visualstudiosetup, dd_bootstrapper, dd_installer or dd_setup. And share the errors here for us to check further.
Feel free to contact us.
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.