Create an Offline Installation of Visual Studio
This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here
For the latest documentation on Visual Studio, see Create an offline installation of Visual Studio or Create a network installation of Visual Studio.
This page describes how to install Visual Studio 2015 when you are not connected to the Internet. However, to perform a "disconnected" installation, you must first create an offline installation layout by using a machine that is connected to the Internet. Here's how to do so.
If your offline machine is running Windows 7 SP1 or Windows Server 2008 R2, please see the special instructions in the Troubleshooting an offline installation section of this topic. You must follow these instructions before you install Visual Studio 2015.
Installing by creating an offline installation
To create an offline installation layout
Choose the edition of Visual Studio that you want to install from the My.VisualStudio.com download page.
After you download the installer to a location on your file system, run "<executable name> /layout".
For example, run:
vs_enterprise.exe /layout D:\VisualStudio2015
By using the
/layoutswitch, you can download almost all the installation packages, not just the ones that apply to the download machine. This approach gives you the files that you need to run this installer anywhere and it might be useful if you want to install components that weren't installed originally.
After you run this command, a dialog box will appear that allows you to change the folder where you want the offline installation layout to reside. Next, click the Download button.
When the package download is successful, you should see a message that says Setup Successful! All specified components have been acquired successfully.
Locate the folder that you specified earlier. (For example, locate D:\VisualStudio2015.) This folder contains everything you need to copy to a shared location or install media.
Currently, the Android SDK does not support an offline installation experience. If you install Android SDK Setup items on a computer that is not connected to the internet, the installation might fail. For more information, see the "Troubleshooting an offline installation" section in this topic.
Run the installation from the file location or from the install media.
Updating an offline installation
Microsoft has released several Updates for Visual Studio 2015. To update your Visual Studio installation, simply download the edition you want from the from the My.VisualStudio.com download page. Next, follow the steps outlined in this topic to create a new offline installation layout and then use it to update your copy of Visual Studio 2015.
Troubleshooting an offline installation
When you install offline from your offline install cache, you might see warning messages about not being able to install some components and packages. The following table includes possible solutions for these scenarios.
|Component or Package||Solution|
|Dotfuscator and Analytics Community Edition 5.19.1 (for the Community, Professional, and Enterprise editions of Visual Studio, as installed on Windows 7 SP1 and Windows Server 2008 R2)||If your offline machine is running Windows 7 SP1 or Windows Server 2008 R2, you must perform the following steps before you install Visual Studio 2015:
1. Configure a file or web server to download the CTL files.
2. Redirect the Microsoft Automatic Update URL for a disconnected environment.
For more information, see the Configure Trusted Roots and Disallowed Certificates page on the Microsoft TechNet site.
|Android SDK Setup (API Level)||You must have an internet connection to install Android SDK (API Level) packages. If you are on a restricted network, you must allow access to the following URLs when you install Visual Studio:
For more information about how to resolve possible issues with proxy settings, see the Visual Studio 2015 install failures (Android SDK Setup) behind a Proxy blog post.
|Visual Studio Extensibility Item Templates
GitHub Extension for Visual Studio
PowerShell Tools for Visual Studio
|If you do not have an internet connection when you install Visual Studio 2015, you can use a special offline feed to generate the offline installation layout. Note: This special feed includes the most recent Updates to Visual Studio 2015.
To create the special offline feed, run the following command: /layout Drive:\VisualStudio2015 /overridefeeduri URL-to-feed-xml
For example, for an English-language special offline feed of Visual Studio 2015 Enterprise, run:
For a complete list of URLs that you can use to create a special offline feed in the language of your choice, see the table below.
Use the following URLs to create a language-specific special offline feed, as described in the table above.