Create an offline installer for Visual Studio 2017

Posted by Anuraj on Wednesday, March 8, 2017

Visual Studio 2017 Visual Studio

This post is about building an offline installer for Visual Studio 2017. On March 7th 2017, Microsoft introduced Visual Studio 2017. Unlike earlier versions of Visual Studio, Microsoft don’t offer an ISO image. This post will help you to install Visual Studio when you’re offline.

First you need to download the Visual Studio edition setup executable or the bootstrap file. You can download it from here. For this post I am using Visual Studio Community Edition. Once you downloaded the file, open the command prompt and can execute vs_community__1573877969.1479199948.exe --layout D:\VS2017CommunityOffline. It will download the required files into D:\VS2017CommunityOffline folder. First you will see a dialog like this.

Visual Studio 2017 - Installation

And after few seconds, it will launch the setup executable, which will download the required packages for the installation.

Once the downloading completed, you can navigate to the folder specified, for me it D:\VS2017CommunityOffline, and can open the vs_community__1573877969.1479199948.exe file, which will launch the installation dialog.

The default offline installer is around 20GB, which contains different project types, like Web, Windows Forms, SQL Server etc. You can customize the installer with command line parameters.

If you want only one language, you can specify --lang en-US in the command, which will download all the workloads and components only in one language. If you’re a web developer, and you don’t want to Windows Forms, you can install only Web workload, --add Microsoft.VisualStudio.Workload.NetCoreTools, which will download only components required for Building cross-platform applications using .NET Core, ASP.NET Core, HTML, JavaScript, and CSS.

Resources.

  1. Create an offline installer for Visual Studio 2017
  2. Use command-line parameters to install Visual Studio 2017
  3. Visual Studio 2017 workload and component IDs

Happy Programming :)



Did you like this article? Share it with your friends

Facebook Twitter Google+ LinkedIn Reddit StumbleUpon



Subscribe


Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub