For anyone else unable to install Visual studio and the installer get stuck at download 0-bytes, these steps worked for me
Ensure your DNS resolution is working correctly. Try nslookup aka.ms
in your command prompt. It should return one or more IP addresses. If it fails, you have a DNS issue.
- Temporarily disable any VPNs, proxies, or security software (antivirus/firewall) completely. This is the most common cause of "downloading 0 bytes" issues.
- Reset your network settings.
- Open Command Prompt as administrator.
-
netsh winsock reset
-
netsh int ip reset
- Reboot your computer.
-
-
- Open Command Prompt as administrator.
- Delete the Visual Studio Installer folder as mentioned in the previous response. This forces the installer to re-download its bootstrapping files, which might be corrupted.