Visual Studio 2017 Offline Installation

Hi All, 

Microsoft has introduced Visual Studio 2017 and many are wondering on how to do offline installation of visual studio like we used to do with plain simple .ISO file and just double clicking it. 

New Process in Visual Studio 2017:  

User needs to first download the required package on a machine which has internet. The download is via command prompt (Sad that they do not have intuitive UI for package selection for download) and the package component will be downloaded on a specific machine. 

Steps: 

 

  1. Download Visual studio bootstrapper exe which will trigger the download. This will be done on machine which has internet. Download the installer based on your license. Keep the exe at the location where the actual visual studio files will be downloaded.
  2. Run the command based on your requirement of package to download. Please note, the package size will be around 600 Mb – 30 GB full package based on your requirement.

A few examples of how to create a custom partial layout. 

  • To download all workloads and components for only one language, run:
    vs_enterprise.exe –layout C:\vs2017offline –lang en-US 
  • To download all workloads and components for multiple languages, run:
    vs_enterprise.exe –layout C:\vs2017offline –lang en-US de-DE ja-JP 
  • To download one workload for all languages, run
    vs_enterprise.exe –layout C:\vs2017offline –add Microsoft.VisualStudio.Workload.Azure –includeRecommended 
  • To download two workloads and one optional component for three languages, run:
    vs_enterprise.exe –layout C:\vs2017offline –add Microsoft.VisualStudio.Workload.Azure –add Microsoft.VisualStudio.Workload.ManagedDesktop –add Component.GitHub.VisualStudio –includeRecommended –lang en-US de-DE ja-JP 
  • To download two workloads and all of their recommended components, run:
    vs_enterprise.exe –layout C:\vs2017offline –add Microsoft.VisualStudio.Workload.Azure –add Microsoft.VisualStudio.Workload.ManagedDesktop –add Component.GitHub.VisualStudio –includeRecommended 
  • To download two workloads and all of their recommended and optional components, run:
    vs_enterprise.exe –layout C:\vs2017offline –add Microsoft.VisualStudio.Workload.Azure –add Microsoft.VisualStudio.Workload.ManagedDesktop –add Component.GitHub.VisualStudio –includeOptional 

 

Full set of components present in visual studio 2017 is mentioned in this link 

 

  1. Save the package at some shared location or copy that as folder to the machine which do not have internet connectivity
  2. Install the certificate for installation of visual studio. Else visual studio 2017 offline installer connects to internet for download of the package even if the package is already downloaded.
  3. Do not add new components if you have not downloaded full layout. If the full layout is downloaded, you can add or remove components.

Some Tips: 

 

If you are trying to install any market place component, kindly install the certificate associated with the component because your offline machine does not have the required certificate and it will try to download the same from internet.