Feedback

/Command-line instructions for Visual Studio 2015 installer
Visual Studio 2015 Support | Visual Studio 2018-05-17T08:30:10+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

System_CAPS_noteNote
Visual Studio command-line parameters are not case-sensitive.
ParameterDescription
/?/help/hDisplays 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 FilenameSpecifies 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
/ProductKeyProductKeySets a custom product key that contains no dashes and no more than 25 characters.
/PromptRestartPrompts the user before restarting the computer.
/q/quiet/s/silentSuppresses 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/passiveShows 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/UninstallUninstalls Visual Studio.
/Uninstall /Force/u /forceUninstalls Visual Studio and all features that are shared with other products.
System_CAPS_warningWarning
If you use this parameter, other products that are installed on the same computer might stop functioning correctly.
Back to Support