Reputation: 165
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
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 ===
Upvotes: 11
Views: 23976
Reputation: 1760
I am having the same issue and the solution is as follows:
Open C:\Windows\System32\drivers\etc\hosts
with Notepad++ as Administrator
then add 93.184.215.201 download.visualstudio.microsoft.com
Open cmd prompt
as Administrator
then type: ipconfig /flushdns
then press enter
.
Open Visual Studio Installer
Upvotes: 2
Reputation: 1394
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.
Upvotes: 2
Reputation: 86
Try to turn off windows firewall and relaunch the visual studio installer, it works for me.
Upvotes: 2
Reputation: 2202
in your host file(C:\Windows\System32\drivers\etc\hosts) insert this line and enjoy
93.184.215.201 download.visualstudio.microsoft.com
Upvotes: 12