After creating an offline installer for Visual Studio 2017 using vs_enterprise.exe --layout c:\vs2017offline we were ready to install Visual Studio on our build servers(which don’t have Internet access).
However when we tried to run the installer, it failed after running for a few minutes with the following error message:
Unable to download installation files
This error message was not that useful as we found out that the problem was not related to missing installation files but due to the fact that we forgot to install the required certificates first.
To install the certificates first, you have to
-
Browse to the "certificates" folder inside the layout folder you created(e.g. c:\vs2017offline\certificates)
-
Right-click each one and choose Install PFX.
- Specify Local machine as target certificate store
- Leave the password field empty
More information: https://docs.microsoft.com/en-us/visualstudio/install/install-certificates-for-visual-studio-offline