8

I have downloaded visual studio installer from "https://visualstudio.microsoft.com/downloads/" once its downloaded the installer file, when I click on install it says "Getting visual studio installer ready" and nothing happens after that. my internet connection is good and able to browse and download other files.

Tried this solution as well https://learn.microsoft.com/en-us/answers/questions/216897/visual-studio-2019-error-unable-to-download-instal.html and also tried after restarting machine. still having the same problem. you can find the screenshot for more information.

can anyone suggest what could be the issue. thanks

enter image description here

I could find the following log

[5/11/2022, 16:53:28] === Logging started: 2022/05/11 16:53:28 === [5/11/2022, 16:53:28] Executable: C:\Users{username}\Downloads\vs_Community.exe v15.9.28307.1974 [5/11/2022, 16:53:28] --- logging level: standard --- [5/11/2022, 16:53:28] Directory 'C:\Users{username}\AppData\Local\Temp\481074b13093fff3a2' has been selected for file extraction [5/11/2022, 16:53:28] Extracting files to: C:\Users{username}\AppData\Local\Temp\481074b13093fff3a2
[5/11/2022, 16:53:28] Extraction took 265 milliseconds [5/11/2022, 16:53:28] Executing extracted package: 'vs_bootstrapper_d15\vs_setup_bootstrapper.exe ' with commandline ' --env "_SFX_CAB_EXE_PACKAGE:C:\Users{username}\Downloads\vs_Community.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:\Users{username}\Downloads"' [5/11/2022, 16:55:43] The entire Box execution exiting with result code: 0x0 [5/11/2022, 16:55:43] Launched extracted application exiting with result code: 0x138c [5/11/2022, 16:55:43] === Logging stopped: 2022/05/11 16:55:43 ===

PMC Karur
  • 125
  • 2
  • 3
  • 10

4 Answers4

11

in your host file(C:\Windows\System32\drivers\etc\hosts) insert this line and enjoy

93.184.215.201 download.visualstudio.microsoft.com
tapos ghosh
  • 2,114
  • 23
  • 37
  • Here in South Korea, the domain name points to `192.229.232.200` according to `nslookup`-ing to several DNS servers. Adding the line to `hosts` solved the problem. It seems that this issue started from some problems in Microsoft's CDN. – Henry Kwon Sep 15 '22 at 02:06
5

There is currently an issue with Microsoft's Installer Backend. Have a look here for the Microsoft ticket.

MichelZ
  • 4,214
  • 5
  • 30
  • 35
1

I had this problem when trying to install VS 2022 in a virtual machine. Later on ended up in getting an offline layout of the whole installer into a folder in host machine.

Try the below command to create an offline installer in the disk.

VisualStudioSetup.exe  --layout C:\VSLayout --add Microsoft.VisualStudio.Workload.Azure --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended --includeOptional

You will get the whole installer in a folder such as shown below.

Refer this link for more options.

enter image description here

MNS
  • 1,354
  • 15
  • 26
0

Try to turn off windows firewall and relaunch the visual studio installer, it works for me.