Installing Visual Studio
 

To install Visual Studio 2015, you can use the installation media from a boxed product, or you can download the installation files from visualstudio.com.

For information about each edition of Visual Studio 2015, including system requirements, see Compare Visual Studio Offerings.

This document provides the following installation information:

Typical vs. Custom Setup


The installation experience for Visual Studio 2015 enables you to include or exclude components that you would use on a daily basis. This can result in a smaller and faster installation for a Typical installation. It also means that in previous versions, many components that were installed by default now are considered Custom components that you must explicitly select in this version. Custom components include Visual C++, Visual F#, SQL Server Data Tools, Cross-platform mobile tools and SDKs, and 3rd party SDKs and extensions. You can install any of the custom components at a later time if you don't select them during initial setup. The complete list of custom components is as follows:

  • Programming Languages

    • Visual C++ compilers, libraries and Tools

    • Visual F#

    • Python Tools for Visual Studio

  • Windows and Web Development

    • ClickOnce Publishing Tools

    • Microsoft SQL Server Data Tools

    • Microsoft Web Developer Tools

    • PowerShell Tools for Visual Studio

    • Silverlight Development Kit

    • Universal Windows App Development Tools

    • Windows 10 Tools and SDKs

    • Windows 8.1 and Windows Phone 8.0/8.1 Tools

    • Windows 8.1 Tools and SDKs

  • Cross Platform Mobile Development

    • Xamarin (C#/.NET)

    • Apache Cordova (HTML/JavaScript)

    • Visual C++ Mobile Development for iOS / Android

  • Common Tools and SDKs

    • Android Native Development Kit (R10E, 32 bits)

    • Android SDK

    • Android SDK Setup (API Level 19 and 21)

    • Android SDK Setup (API Level 22)

    • Apache Ant (1.9.3)

    • Java SE Development Kit (7.0.550.13)

    • Joyent Node.js

  • Common Tools

    • Git for Windows

    • GitHub Extensions for Visual Studio

    • Visual Studio Extensibility Tools

Installing Visual Studio


You need administrator credentials to install Visual Studio. However, you don't need them to use Visual Studio after you install it.

Your local administrator account must have the following privileges enabled to install everything in Visual Studio.

 

Local Policy Object Display Name

User Right

Backup Files and directories

SeBackupPrivilege

Debug programs

SeDebugPrivilege

Manage auditing and security log

SeSecurityPrivilege

For more information on this local administrator account requirement, see the Knowledge Base article, SQL Server installation fails if the Setup account does not have certain user rights.

Installing by using installation media


  • To install Visual Studio, in the root directory on the Visual Studio installation media, run the installation file for the edition you want:

     

    Edition

    Installation File

    Visual Studio Enterprise

    vs_enterprise.exe

    Visual Studio Professional

    vs_professional.exe

    Visual Studio Community

    vs_community.exe

Downloading Visual Studio for an offline installation


In most cases, you can install Visual Studio from the download site with no problems. However, in some cases, you may want to download all the update packages before you install them (for example, to install on multiple machines or on an offline machine). The following steps explain how to download all the update packages that you need for an offline installation.

  1. After you download the update executable from the MSDN website to a location on your file system, run the following command at a command prompt: <executable name> /layout.

    This command downloads all the packages for the installation.

    By using the /layout switch, you can download all the core installation packages, not just the ones that apply to the download machine. This approach gives you all the files that you need to run this update anywhere and may be useful if you want to install components that weren't installed originally.

  2. After you run the command, you should be prompted for the download location. Enter the location, and then choose Download.

  3. When the package download is successful, you should see a Visual Studio screen that says Setup Successful! All specified components have been acquired successfully.

  4. In the file location that you specified, find the executable file and the package folder. This is everything you need to copy to a shared location or install media.

  5. You can now run the installation from the file location or the install media.

Installing Visual Studio in virtualized environments


Video Issues with Hyper-V

If you run Windows Server 2008 R2 with Hyper-V enabled and an accelerated graphics adapter, you may experience system slowdowns.

For more information, see the following page on the Microsoft website: Video performance may decrease when a Windows Server 2008 or Windows Server 2008 R2 based computer has the Hyper-V role enabled and an accelerated display adapter installed.

Emulating Devices with Hyper-V

When you install Visual Studio 2015 on real hardware without virtualization, you can choose features that enable emulation of Windows and Android devices using Hyper-V. When you install into Hyper-V, you will not be able to emulate the Windows or Android devices. This is because the emulators are themselves virtual machines, and you cannot currently host a VM inside another VM. The workaround is to have real Windows or Android devices to which you can directly deploy and debug your application.

Using command-line parameters


When you run the installation application, you can use the following command-line parameters, which are case-insensitive.

 

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.

/CEIPConsent

Consents to the collection of information to improve the customer experience in accordance with the product privacy policy.

/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.

/RefreshFile <path to update file>

Path to a local administrator controlled newer versions data file that indicates required or recommended updated versions are available.

/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.

Caution

If you use this parameter, other products that are installed on the same computer might stop functioning correctly.

When running setup from the command line, you will want to capture and process the return code for a better command-line experience. See the Visual Studio Administrator Guide for more information.

Troubleshooting installation


Use these resources to get help for setup and installation issues:

  • Visual Studio Setup and Installation forum. Review questions and answers from others in the Visual Studio community. If you don't find what you need, ask your own questions.

  • Microsoft Support for Visual Studio website. Read knowledge base (KB) articles and learn how to contact Microsoft Support for information about issues with Visual Studio installation.

  • For releases of Visual Studio 2015, you can report your issue by using the Connect site at https://connect.microsoft.com/visualstudio.

    It’s best if your issue includes the installation logs. You can prepare your logs for the issue report by using the Microsoft Visual Studio and .NET Framework Log Collection Tool, as described in the following steps.

    1. Download the installation diagnostic tool from http://aka.ms/vscollect

    2. From an elevated command prompt, run the collect.exe program.

    3. After the collect.exe program completes, fetch the vslogs.cab file from your Temp directory and upload that into the issue report.

Enterprise network deployment


For information about how to deploy Visual Studio over a network, see Visual Studio Administrator Guide.

After Visual Studio is installed


After you have installed Visual Studio, we recommend that you register your copy of the product.

Registering Visual Studio


To register Visual Studio

  1. On the menu bar, choose Help, About.

    The About dialog box shows the product identification number (PID). You'll need the PID and Windows Account credentials (such as a Hotmail or Outlook.com email address and password) to register the product.

  2. On the menu bar, choose Help, Register Product.

Installing offline Help content


After you install Visual Studio, you can download additional Help content so that it will be available offline.

To install or uninstall Help content

  1. On the Visual Studio menu bar, choose Help, Add and Remove Help Content.

  2. On the Manage Content tab of the Microsoft Help Viewer, select the installation source for your Help content.

  3. If you're looking for a specific Help collection, enter the name or a keyword in the Search text box and then press Enter.

  4. Next to the name of the Help collection you want, choose the Add or Remove link.

  5. Choose the Update button.

For more information about offline Help, see Microsoft Help Viewer 2.2 Help

Repairing Visual Studio


To repair Visual Studio

  1. In Control Panel, on the Programs and Features page, choose the product edition that you want to repair, and then choose Change.

  2. In the Setup wizard, choose Repair, choose Next, and then follow the remaining instructions.

To repair Visual Studio in silent or passive modes (that is, repair from source)

  1. On the computer where Visual Studio is installed, open the Windows command prompt.

  2. Enter the following parameters:

    DVDRoot \<Installation File> </quiet|/passive> [/norestart]/Repair

Installing selectable items


To install selectable items

  1. In Control Panel, on the Programs and Features page, choose the product edition to which you want to add one or more components, and then choose Change.

  2. In the Setup wizard, choose Modify, and then choose the components that you want to install.

  3. Choose Next, and then follow the remaining instructions.

Checking for Service Releases and Product Updates


Visual Studio doesn't automatically upgrade extensions when you upgrade from previous versions because not all extensions are compatible. You must reinstall the extensions from the Visual Studio Gallery or the software publisher.

To automatically check for service releases

  1. On the menu bar, choose Tools, Options.

  2. In the Options dialog box, expand Environment, and then select Extensions and Updates. Make sure the Automatically check for updates check box is selected, and then choose OK.

Uninstalling Visual Studio


To uninstall Visual Studio

  1. In Control Panel, on the Programs and Features page, choose the product edition that you want to uninstall, and then choose Change.

  2. In the Setup wizard, choose Uninstall, choose Yes, and then follow the remaining instructions in the wizard.

To uninstall Visual Studio in silent or passive modes (that is, uninstall from source)

  1. On the computer where Visual Studio is installed, open the Windows command prompt.

  2. Enter the following parameters:

    DVDRoot \<Installation File> </quiet|/passive> [/norestart]/uninstall

If you can't uninstall Visual Studio by using the uninstallation utility, you can perform a manual uninstallation by removing Visual Studio and then removing related components. For more information, see the How to uninstall Visual Studio article in the Microsoft Knowledge Base (KB).

Related Topics


 

Title

Description

Installing Visual Studio Versions Side-by-Side

Provides information about how to install multiple versions of Visual Studio on the same computer.

The Visual Studio Image Library

Provides information about how to install graphics that you can use in Visual Studio applications.

Visual Studio Administrator Guide

Provides information about deployment options for Visual Studio.

Installing Multiple Language Versions of Visual Studio

Provides information about how to install different language versions of Visual Studio.

How to: Locate the Visual Studio Product Key

Provides information about how to locate the product key for your installation of Visual Studio.

Get Started Developing with Visual Studio

Links to documents that can help you use Visual Studio effectively.

命令安装VS的更多相关文章

  1. Linux系统yum命令安装软件时保留(下载)rpm包 -- 转载

    昨天在部署zabbix监控的时候,遇到一个问题:监控服务器处于无外网状态,在线安装不可用.而某些依赖包度娘或谷姐搜索起来也挺呛人的!于是想到一个办法,利用有外网的服务器的yum命令来安装这些软件,并自 ...

  2. Diskpart命令安装系统小结

    <diskpart命令安装系统小结> 今天给同学安装系统,win8改win7.同学是预装了win8的联想y480,分区表采用的是GPT格式,捣鼓了半天才知道.GPT格式是新式的分区格式,相 ...

  3. CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”

    刚安装完CentOS,使用yum命令安装一些常用的软件,使用如下命令:yum –y install gcc. 提示如下错误信息: Loaded plugins: fastestmirror, refr ...

  4. MAC中通过gem命令安装compass

    在MAC中通过gem命令安装compass时会出异常,原因是compass版本更新了,一些运行时所用到的依赖软件的版本没能得到更新,故而出现错误.例如,用以下命令安装compass: $ gem in ...

  5. 【转】CentOS 使用yum命令安装出现错误提示”could not retrieve mirrorlist http://mirrorlist.centos.org ***”

    源自:http://www.cnblogs.com/yangbingqi/p/3328610.html 刚安装完CentOS,使用yum命令安装一些常用的软件,使用如下命令:yum grouplist ...

  6. CentOS 使用yum命令安装Java SDK(openjdk)

    CentOS 6.X 和 5.X 自带有OpenJDK runtime environment  (openjdk).它是一个在linux上实现开源的java 平台.CentOS  yum 命令 安装 ...

  7. adb命令安装apk 来学习吧

    1.将需要安装的apk放在platform-tools下 2.将手机和电脑连接,在cmd中输入 adb devices查看 3.使用adb命令安装apk,在cmd中输入:adb install apk ...

  8. Screen命令安装使用教程

    在安装lnmp之前,我们一般先运行一下Screen程序,因为screen好像一个容器一样,把lnmp的安装过程保护了起来.以CentOS中安装lnmp为例,程序下载.编译都需要比较长的时间,如果中途遇 ...

  9. SuSE的命令安装软件 zypper

    转自:http://blog.csdn.net/s_k_yliu/article/details/6674079 SuSE的命令安装软件 zypper,yast2 redhat yum debain ...

  10. Linux~yum命令安装程序

    当我们使用linux的最小安装时,很多系统程序都没有被安装,这时,我们可以通过yum命令安装指定的包包,当然前提是你的linux处于联网状态的,下面说一下yum的用法 1 显示程序列表(联网的) yu ...

随机推荐

  1. 在iis中设置文件下载而不是在浏览器上打开

    点击网页链接的*.txt,*.jpg,*.xml等文件时会在浏览器上直接显示,并没有像*.doc那样弹出下载提示框. 解决方法: 在部署的网站上,选择存放文件的目录,选择 HTTP响应标头 ,添加一个 ...

  2. arduino编程语言Wiring参考手册API

    对Arduino的编程是利用 Arduino编程语言 (基于 Wiring)和Arduino开发环境(based on Processing)来实现的. 通过编程,Arduino可以实现很多种功能. ...

  3. highlight.js 页面 代码高亮

    官网:https://highlightjs.org/ 功能: 支持 155 种编程语言的语法解析:拥有 73 种样式 自动检测编程语言 可以在 node.js 平台上运行 支持各种标签 与任何 js ...

  4. maxiang conf

    /**设置你自己的CSS.例如:h1 {border-bottom: 1px solid #ccc;line-height:1.6;}body {background:#FDFFD0} **/   p ...

  5. Light OJ 1032 - Fast Bit Calculations(数学)

    题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1032 题目大意:一个十进制数变化为二进制,那么对于这个数,如果连着两个二进制位 ...

  6. NGUI 屏幕自适应(初始设定宽高800x480只支持比其大的屏幕)

    自适应讲解部分可以参考以下网址:http://www.xuanyusong.com/archives/2536,下面代码中提到的AdaptiveManualHeight()函数就是参考该文章的. 下面 ...

  7. include,import,@class的区别

    1.#include与#import功能一样,都是导入头文件 2.区别是#include是单纯导入头文件,如果重复导入头文件,头文件就被导入多分 3.#import在导入头文件之前会检查之前是否导入过 ...

  8. MySQL安装,启动

    一.安装.配置环境变量 http://www.cnblogs.com/mr-wid/archive/2013/05/09/3068229.html 配置环境变量:把你的安装目录复制下,例如:G:\Do ...

  9. C# Acrobat打开pdf出错,提示Acrobat.AcroPDDocClass不能强制转换为Acrobat.CAcroPDDoc,使用com组件{9B4CD3E7-4981-101B-9CA8-9240CE2738AE},HRESULT: 0x80004002

    要批量将PDF文件内容按页转换为图片,在写的过程过程遇到两个问题. 一,下载的SDK中,提示要引用COM组件Acrobat,但在我的电脑上就是看不到,只能看到Adobe Acrobat 7.0 Bro ...

  10. 【openresty】向lua代码中传递参数

    前面介绍FormInputNginxModule模块时,明白了openresty如何获取post提交的数据. 然后,如果需要通过lua处理这些数据,需要把数据作为参数传递到lua中,lua获取了这些数 ...