Use Command-Line Parameters to Install Visual Studio

Visual Studio 2015
 

Updated: September 6, 2016

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

For the latest documentation for Visual Studio 2017, see Use command-line parameters to install Visual Studio 2017.

When you install Visual Studio 2015 from a command prompt, you can use the following command-line parameters (also known as switches).

System_CAPS_ICON_note.jpg Note

Make sure that you use the actual installer and not the bootstrapper file. For example, make sure you use vs_enterprise.exe instead of vs_enterprise_GUID.exe. You can download an installer from My.VisualStudio.com.

Visual Studio command-line parameters are not case-sensitive.

ParameterDescription
/?

 /help

 /h
Displays command-line parameters.
/AddRemoveFeaturesSpecifies which features to add or remove from the installed product.
/AdminFile AdminDeployment.xmlInstalls Visual Studio using the data file that you specified for administrative installation.
/ChainingPackage BundleNameSpecifies which bundle is chaining this bundle. Also can be used to specify a Customer Improvement Experience cohort.
/CreateAdminFile <filename>Specifies the location to create a control file that can be used with /AdminFile
/CustomInstallPath InstallationDirectoryInstalls all re-targetable packages in the directory that you specify.
/ForceRestartAlways restarts the computer after installation.
/fullInstalls all product features.
/InstallSelectableItems <item name 1>[;<item name 2>]List of selection tree items to check on the selection screen of the installer wizard.
/l

 /Log Filename
Specifies a location for the log file.
/layout DirectoryCopies the files on the installation media to the directory that you specify.
/NoCacheOnlyModePrevents pre-population of the package cache.
/NoRefreshPrevents the check for newer versions of this product for either required or recommended updated versions.
/norestartPrevents the installation application from restarting the computer during or after installation. See the Return Codes section of the Visual Studio Administrator Guide for the return codes to look for.
/nowebPrevents installation from the Internet.
/OverrideFeedUri <path to feed file>Path to a local, external feed that describes software items
/ProductKey

 ProductKey
Sets a custom product key that contains no dashes and no more than 25 characters.
/PromptRestartPrompts the user before restarting the computer.
/q

 /quiet

 /s

 /silent
Suppresses the user interface (UI) for the installation application. If Visual Studio is already installed and you specify no parameters except this one, the installation application runs in Maintenance mode.
/qb

 /passive
Shows progress but doesn't wait for user input.
/repairRepairs Visual Studio.
/SuppressRefreshPromptPrevents displaying the update available dialog in the installation wizard, thus, the installation wizard will auto-accept any required or recommended updated versions.
/u

 /Uninstall
Uninstalls Visual Studio.
/Uninstall /Force

 /u /force
Uninstalls Visual Studio and all features that are shared with other products. Warning: If you use this parameter, other products that are installed on the same computer might stop functioning correctly.

Visual Studio Administrator Guide

Show: