/Command-line instructions for Visual Studio 2015 installer
Visual Studio 2015 Support | Visual Studio 2018-01-10T08:22:01+00:00

Visual Studio 2015 FAQ

Back to Support

How can we help?

Command-line instructions for Visual Studio 2015 installer

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

List of command-line parameters

Visual Studio command-line parameters are not case-sensitive.
Parameter Description
/? /help /h Displays command-line parameters.
/AddRemoveFeatures Specifies which features to add or remove from the installed product.
/AdminFile AdminDeployment.xml Installs Visual Studio using the data file that you specified for administrative installation.
/ChainingPackage BundleName Specifies 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 InstallationDirectory Installs all re-targetable packages in the directory that you specify.
/ForceRestart Always restarts the computer after installation.
/full Installs 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 Directory Copies the files on the installation media to the directory that you specify.
/NoCacheOnlyMode Prevents pre-population of the package cache.
/NoRefresh Prevents the check for newer versions of this product for either required or recommended updated versions.
/norestart Prevents 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.
/noweb Prevents 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.
/PromptRestart Prompts 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.
/repair Repairs Visual Studio.
/SuppressRefreshPrompt Prevents 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.
If you use this parameter, other products that are installed on the same computer might stop functioning correctly.
Back to Support