Can't install Visual Studio "Failed to download installation files" - visual-studio

I've seen other threads about this, but they're all regarding offline installs and certificates. I'm just trying to do the Online Installer (from here: https://www.visualstudio.com/thank-you-downloading-visual-studio/?sku=Professional&rel=15)
And I keep getting this error.

Microsoft chat confirmed that this is an issue on their end.

Related

Visual Studio unable to download installation files

I simply wish to install Visual Studio 2017 to compile a project.
Trying to install via the installer obtained from Microsoft fails after being unable to obtain the .opc file from aka.ms (found that after checking logs in %Temp%)
Moved to a full install version with all files and .opc file present. Installer still attempts to download from the web. Fails saying it is unable to download.
Tried running installed with --layout pointing toward the location of the offline files, same error.
Installed certificates from the certificates folder both in Personal and Trusted Root stores, no difference.
Tried starting CNG Key Isolation service, fails with error 1053
Microsoft support transferred me three times before saying the problem is on their end, so how, if one were to have no internet connection and evidently has all files required for install available, install this, if the installer stubbornly attempts to download from the web?
Is there a KB I am missing or some procedure I have to follow with the full installers?
In my case it is the network firewall blocking the downloading because the downloading involve not only main Microsoft visual studio site which is allowed in our network but also some url like https://aka.ms which is blocked by our firewall.the error is listed in c:\users\myusername\appdata\local\temp\dd_bootstrapper_xxx.log
It appears from what you have submitted you are attempting to download a offline copy of Visual Studio. It also appears that you are attempting to run the file originally downloaded to create the bootstrapper for the installation.
You want to instead launch the setup executable which is actually in the layout folder.
Hope this helps. ^^
Appears the cause for this was the service disclosure debug, disabling the debug, binding all services back into the svchost and after rebooting the service is working again. I have been able to install VS now.

Visual Studio 2017 Installer is "Unable to download installation files"

I've just finished talking to the "Microsoft Support Chat" and he told me to post this here (i can't post it on the developercommunity forums because i need to click a button in the installer which isn't there at that stage).
When I'm trying to run the VS Enterprise 2017 installer (or any other edition) the installer cancels with the error message: "Unable to download installation files. Check your internet connection and try again."
What I tried so far:
Running as Administrator
Downloading the installer with a different browser
Using the --layout option to download files first (same error message, no files downloaded)
Installing the certificates
Using the --update option before running the installer regularly
Running the Windows 10 Windows Update Troubleshooter (couldn't identify the problem)
Disabling Bitdefender Antivirus
Multiple Reboots/Re-Downloads
One more thing that might be helpful is that quite a while back when i was installing "Cyber Ghost VPN" on the same machine i had trouble connecting using that application because a windows service that should've been active wasn't running.
Also I would've included the Logs from running the vscollect tool but i can't seem to figure out how to attach a file here. Do i have to upload it somewhere else and include the link or is there a way i can just attach the file here?
It could be a certificate issue, maybe your time and region are not set correctly, so the certificate is in a different date than the server. I followed this three spets a couple weeks ago and it worked.
Install the certificates, usually in "certificates" folder,(inside Layout folder).
Right-click each one to install it with administrator rigths.
3.Run the installation file.

Error installing Microsoft Bot framework emulator

I'm trying to install "Bot framework emulator V3" on my PC, but I get "The installation has failed" and then I can't do anything. I've already turned off the antivirus and the Windows Firewall... I don't know what to do, and I don't have any information of the error.
I had the same problem and attempted multiple times to install via the link.
Now I was able to run the emulator by downloading and installing it myself following these instructions:
https://github.com/Microsoft/BotFramework-Emulator/wiki/How-to-Contribute#clone-and-build
None of the other solutions (i.e. running .net fix, etc) worked.

I am unable to install xamarin

I downloaded the Xamarin installer from the Microsoft website. I already have Visual Studio 2012 installed in my Windows 7 SP1. When I started the installer, I just clicked next. but after that nothing is happening. though I can see the process (XamarinInstaller.exe) running in the task manager but nothing is happening. What do I do?
The best way to get around this would be to do a manual install of the required items.
If you reach out to contact#xamarin.com we can send you the links to the latest installers.

Visual Studio 2015 does not install Android SDK tools for Api 19,21,23 etc for Xamarin

I am moving towards Xamarin for cross-platform application development. I already had VS2015 installed, I downloaded Xamarin tools(vstoolsforxamarin.exe) from their website and when I install them after a long wait VS says "setup completed with errors"and it does not download and install Android SDK for API 19,20,23, It always say:"Please check your internet connection and try again" and i am sure that my internet connection doesn't get disturbed during all this process. I have tried this 3 times now, tried by uninstalling VS2015, installing it again but got the same error. What is the problem that is causing this? I already have Android Studio installed, with its SDK manager. Any help would be appreciated, that to get Xamarin running in VS2015.
EDIT:
Solution:
I already had Android Studio and its SDK on my system, going to Tools>Options>Xamarin from Visual Studio and giving path of the Android SDK solved my problem. Read this answer on StackOverflow somewhere!
Seems like this issue is caused because Visual Studio is trying to download thrid-party libraries (Android SDK). You can fix this from Control-Panel
Have a look at this post.
Make sure you have installed Java JDK, I had similar issue reported here
Visual Studio 2015 Enterprise Reports Internet Connectivity Issue while there is no issues with networking
As mwilson64 answered in response to Android SDK Setup API not installed (same as linked above on "Have a look at this post."), my steps to resolve:
Create file %USERPROFILE%.android\androidtool.cfg
Paste the following into new file (created in step 1):
# Settings for Android Tool
# Last updated: Wed May 19 17:09:27 UTC 2017
http.proxyPort=8888
sdkman.enable.previews=false
http.proxyHost=127.0.0.1
sdkman.ask.adb.restart=false
sdkman.show.update.only=true
sdkman.force.http=false
sdkman.use.dl.cache=true
Replace values in proxyPort and proxyHost with your company's proxy settings.

Resources