Как установить visual studio без интернета
We designed Visual Studio to work well in various network and computer configurations. For all scenarios involving the local machine, we recommend that you use the Visual Studio Installer, which is a small file that checks for updates on a regular basis and helps you stay current with all the latest fixes and features. The information on this page discusses how to create an offline installation package of files for installation on the local machine.
If you are an enterprise IT administrator who wants to perform a deployment of Visual Studio to a network of client workstations, or if you need to create an installation package of files to transfer to or install onto another machine, refer to our Visual Studio Administrators Guide and the Create a network-based installation of Visual Studio documentation.
Use the "Download all, then install" feature
Sometimes online access is problematic. For example, you might have an unreliable internet connection or your internet connection may have low bandwidth. For situations like these, we've made other methods available for acquiring Visual Studio. You can use the Download all, then install feature from the Visual Studio Installer to download an installation package on the local machine before you install, or you can use the command line to create a local installation package to install later.
To download a local installation package, select the Download all, then install option in the dropdown at the bottom of the Workloads tab of the Visual Studio Installer. The purpose of this feature is to frontload the downloading of the Visual Studio packages onto the same computer that you plan on eventually installing Visual Studio on. By downloading the packages locally first, you can then safely disconnect from the internet before you install Visual Studio.
The Download all, then install functionality downloads a Visual Studio installation package that is customized to the local machine. Do not try to transfer this downloaded installation package to another computer, as it's not designed to work that way. Instead, if you want to download an installation package and transfer it to or install it on another machine, then you'll need to create a layout as described in the Create a network-based installation of Visual Studio documentation.
You can also configure future updates of this instance of Visual Studio to respect the Download all, then install behavior. For more information, refer to the Customize update settings documentation.
Use the command line to create a local layout
Download the bootstrapper for the edition of Visual Studio you want and copy it into the directory that you want to serve as the source location of your local layout. Once the layout is created, you can use it to install Visual Studio. The bootstrapper is the executable that you use to create, update, and perform other Visual Stusio installation operations. You must have an internet connection to complete this.
Step 1 - Download the Visual Studio bootstrapper
To get the latest bootstrappers for Visual Studio 2017 version 15.9, download one of the files below. These bootstrappers will always install the latest version of Visual Studio 2017, no matter when you run them.
Edition | Bootstrapper |
---|---|
Visual Studio 2017 Professional version 15.9 | vs_professional.exe |
Visual Studio 2017 Enterprise version 15.9 | vs_enterprise.exe |
Visual Studio 2017 Build Tools version 15.9 | vs_buildtools.exe |
The bootstrappers listed below will always install the latest most secure version of Visual Studio 2019, no matter when you run them. Alternatively, if you want to install a specific version of Visual Studio 2019, go to the Visual Studio 2019 Releases page that has links to the fixed version bootstrappers for each servicing release, and download the one you want. Copy it into the directory that you want to serve as the location of your local layout.
Edition | Bootstrapper |
---|---|
Visual Studio 2019 Professional version 16.11 | vs_professional.exe |
Visual Studio 2019 Enterprise version 16.11 | vs_enterprise.exe |
Visual Studio 2019 Build Tools version 16.11 | vs_buildtools.exe |
The bootstrappers listed below will always install the latest most secure version of Visual Studio 2022 on the Current channel, no matter when you run them. Alternatively, if you want to install a specific version or a specific channel of Visual Studio 2022, go to the Visual Studio 2022 Release History page that has links to the evergreen and fixed version bootstrappers for each servicing release on each channel, and download the one you want. Copy it into the directory that you want to serve as the location of your local layout.
Edition | Bootstrapper |
---|---|
Visual Studio 2022 Community | vs_community.exe |
Visual Studio 2022 Professional | vs_professional.exe |
Visual Studio 2022 Enterprise | vs_enterprise.exe |
Visual Studio 2022 Build Tools | vs_buildtools.exe |
If you previously downloaded a specific bootstrapper file and want to verify what version it will install, here's how. In Windows, open File Explorer, right-click the bootstrapper file, choose Properties, choose the Details tab, and then view the Product version number. To match that number to a release of Visual Studio, refer to the table at the bottom of the Visual Studio 2019 Releases page.
If you previously downloaded a bootstrapper file and want to verify what version it will install, here's how. In Windows, open File Explorer, right-click the bootstrapper file, choose Properties and then choose the Details tab. The Product version field will describe the channel and version that the bootstrapper will install. The version number should always be read as "latest servicing version of what is specified", and the channel is Current unless explicitly specified. So, a bootstrapper with a Product version of LTSC 17.0 will install the latest 17.0.x servicing release that is available on the 17.0 LTSC channel. A bootstrapper with a Product version that simply says Visual Studio 2022 will install the latest version of Visual Studio 2022 on the Current channel.
Step 2 - Create a local layout
You must have an internet connection to complete this step.
Open a command prompt with administrator privileges, navigate to the directory where you downloaded the bootstrapper into, and use the bootstrapper's parameters as defined in the Use command-line parameters to install Visual Studio page to create your local layout. Common examples using the Enterprise bootstrapper are illustrated below and in the command-line parameter examples page. You can install a language other than English by changing en-US to a locale from the list of language locales, and you can use the list of components and workloads to further customize your local layout.
To prevent an error, make sure that your full installation path is less than 80 characters.
For C++ desktop development, run:
To create a complete local layout, English only, with all features (this will take a long time—we have lots of features!), run:
A complete local layout of Visual Studio requires a minimum of 35 GB of disk space. For more information, see System requirements.
A complete local layout of Visual Studio requires a minimum of 41 GB of disk space. For more information, see System requirements.
A complete local layout of Visual Studio requires a minimum of 45 GB of disk space. For more information, see System requirements.
Step 3 - Install Visual Studio from the local layout
When you install Visual Studio from a local layout, the Visual Studio installer uses the local versions of the files. But, if you select components during installation that aren't in the layout, then the Visual Studio installer will attempt to download them from the internet. To make sure that you install only the files that you've previously downloaded, use the same command-line options that you used to create the local layout. To make sure your installer doesn't try to access the internet, use the --noweb switch.
For example, if you created a local installation layout with the following command:
Then use this command to run the installation:
Then use this command to run the installation:
If you're using Visual Studio Community, you must activate it by logging into the product within 30 days of installation. Activation requires an internet connection.
If you get an error that a signature is invalid, you must install updated certificates. Open the Certificates folder in your local layout. Double-click each of the certificate files, and then click through the Certificate Manager wizard. If you're asked for a password, leave it blank.
List of language locales
Language-locale | Language |
---|---|
cs-CZ | Czech |
de-DE | German |
en-US | English |
es-ES | Spanish |
fr-FR | French |
it-IT | Italian |
ja-JP | Japanese |
ko-KR | Korean |
pl-PL | Polish |
pt-BR | Portuguese - Brazil |
ru-RU | Russian |
tr-TR | Turkish |
zh-CN | Chinese - Simplified |
zh-TW | Chinese - Traditional |
Support or troubleshooting
Sometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.
Visual Studio поддерживает различные конфигурации сети и компьютера. Для всех сценариев, в которых участвует локальный компьютер, рекомендуется использовать Visual Studio Installer — небольшой файл, который регулярно проверяет наличие обновлений и уведомляет вас о последних исправлениях и новых функциях. На этой странице обсуждается создание пакета установки файлов для установки на локальном компьютере в автономном режиме.
Если вы являетесь ИТ-администратором предприятия и хотите выполнить развертывание Visual Studio в сети клиентских рабочих станций или если вам нужно создать установочный пакет файлов для перемещения или установки на другой компьютер, обратитесь к руководству для администраторов Visual Studio и документации по созданию сетевой установки Visual Studio.
Использование командной строки для создания локального макета
Скачайте начальный загрузчик для нужного выпуска Visual Studio и скопируйте его в каталог, который будет использоваться в качестве исходного расположения локального макета. После создания макета его можно использовать для установки Visual Studio. Начальный загрузчик — это исполняемый файл, который используется для создания, обновления и выполнения других операций для установки Visual Studio. Для выполнения этого действия необходимо подключение к Интернету.
Шаг 1. Скачивание начального загрузчика Visual Studio
Для получения последних начальных загрузчиков Visual Studio 2017 версии 15.9 скачайте один из следующих файлов. Эти начальные загрузчики всегда будут устанавливать последнюю версию Visual Studio 2017 вне зависимости от момента их запуска.
Выпуск | Начальный загрузчик |
---|---|
Visual Studio 2017 Professional версии 15.9 | vs_professional.exe |
Visual Studio 2017 Enterprise версии 15.9 | vs_enterprise.exe |
Visual Studio 2017 Build Tools версии 15.9 | vs_buildtools.exe |
Приведенные ниже начальные загрузчики всегда будут устанавливать последнюю наиболее безопасную версию Visual Studio 2019 вне зависимости от момента их запуска. Если же вы хотите установить конкретную версию Visual Studio 2019, перейдите на страницу выпусков Visual Studio 2019 со ссылками на начальные загрузчики для конкретных версий каждого обслуживаемого выпуска и скачайте нужный. Скопируйте его в каталог, который будет использоваться в качестве исходного расположения локального макета.
Выпуск | Начальный загрузчик |
---|---|
Visual Studio 2019 Professional версии 16.11 | vs_professional.exe |
Visual Studio 2019 Enterprise версии 16.11 | vs_enterprise.exe |
Visual Studio 2019 Build Tools версии 16.11 | vs_buildtools.exe |
Приведенные ниже начальные загрузчики всегда будут устанавливать последнюю наиболее безопасную версию Visual Studio 2022 вне зависимости от момента их запуска. Если же вы хотите установить конкретную версию или конкретный канал Visual Studio 2022, перейдите на страницу выпусков Visual Studio 2022 со ссылками на начальные загрузчики для конкретных версий каждого обслуживаемого выпуска и скачайте нужный. Скопируйте его в каталог, который будет использоваться в качестве исходного расположения локального макета.
Выпуск | Начальный загрузчик |
---|---|
Visual Studio 2022 Community | vs_community.exe |
Visual Studio 2022 Professional | vs_professional.exe |
Visual Studio 2022 Enterprise | vs_enterprise.exe |
Visual Studio 2022 Build Tools | vs_buildtools.exe |
Если вы ранее скачали конкретный файл начального загрузчика и хотите проверить, какую версию он установит, см. следующие инструкции. В Windows откройте проводник, щелкните правой кнопкой мыши файл начального загрузчика, выберите Свойства, перейдите на вкладку Подробно, а затем найдите номер в строке Версия продукта. Чтобы сопоставить этот номер с выпуском Visual Studio, см. таблицу в нижней части страницы Выпуски Visual Studio 2019.
Если вы ранее скачали файл начального загрузчика и хотите проверить, какую версию он установит, см. следующие инструкции. В Windows откройте проводник, щелкните правой кнопкой мыши файл начального загрузчика, выберите Свойства и перейдите на вкладку Подробности. Поле Версия продукта отобразит канал и версию, которые установит начальный загрузчик. Номер версии следует читать как "последняя обслуживаемая конкретная версия", а канал является текущим, если явно не указано иное. Таким образом, начальный загрузчик с версией продукта канала LTSC 17.0 установит последний обслуживаемый выпуск 17.0.x, доступный на канале LTSC 17.0. Начальный загрузчик с версией продукта, указанной как "Visual Studio 2022", установит последнюю версию Visual Studio 2022 с текущего канала.
Шаг 2. Создание локального макета
Для выполнения этого этапа необходимо подключение к Интернету.
Откройте командную строку с правами администратора, перейдите в каталог, в который был скачан начальный загрузчик, и используйте параметры начального загрузчика, как указано в статье Использование параметров командной строки для установки Visual Studio, чтобы создать локальный макет. Распространенные примеры использования начального загрузчика Enterprise показаны ниже и на странице с примерами параметров командной строки. Вы можете установить язык, отличающийся от английского, изменив en-US на языковой стандарт из списка языковых стандартов. Для дальнейшей настройки локального макета можно использовать список компонентов и рабочих нагрузок.
Чтобы предотвратить ошибку, убедитесь, что путь к полной установке содержит менее 80 символов.
Для разработки классических приложений C++ выполните следующую команду:
Чтобы создать локальный макет с поддержкой только английского языка и полным набором компонентов (это будет довольно долго — компонентов у нас очень много), выполните следующую команду:
Для создания локального макета Visual Studio потребуется как минимум 35 ГБ пространства на диске. Дополнительные сведения см. в статье Требования к системе.
Для создания локального макета Visual Studio потребуется как минимум 41 ГБ пространства на диске. Дополнительные сведения см. в статье Требования к системе.
Для создания локального макета Visual Studio потребуется как минимум 45 ГБ пространства на диске. Дополнительные сведения см. в статье Требования к системе.
Шаг 3. Установка Visual Studio из локального макета
При установке Visual Studio из локального макета установщик Visual Studio использует локальные версии файлов. Но если во время установки вы выберете компоненты, которые отсутствуют в макете, установщик Visual Studio попытается скачать их из Интернета. Чтобы установить только те файлы, которые вы уже скачали, все параметры командной строки должны совпадать с теми, которые вы использовали для создания локального макета. Чтобы установщик не попытался подключиться к Интернету, используйте параметр --noweb .
Предположим, что вы создали макет локальной установки с помощью следующей команды:
В этом случае используйте для запуска установки следующую команду.
В этом случае используйте для запуска установки следующую команду.
Если вы используете Visual Studio Community, необходимо активировать его, войдя в продукт в течение 30 дней после установки. Для активации требуется подключение к Интернету.
Список языковых стандартов
Язык-языковой стандарт | Язык |
---|---|
cs-CZ | Чешский |
de-DE | Немецкий |
en-US | Английский |
es-ES | Испанский |
fr-FR | Французский |
it-IT | Итальянский |
ja-JP | Японский |
ko-KR | Корейский |
pl-PL | Польский |
pt-BR | Португальский (Бразилия) |
ru-RU | Русский |
tr-TR | Турецкий |
zh-CN | Китайский (упрощенное письмо) |
zh-TW | Китайский (традиционное письмо) |
Поддержка или устранение неполадок
Иногда возникают проблемы. Если установить Visual Studio не удается, воспользуйтесь пошаговыми указаниями в статье Устранение неполадок при установке и обновлении Visual Studio.
We designed Visual Studio to work well in various network and computer configurations. For all scenarios involving the local machine, we recommend that you use the Visual Studio Installer, which is a small file that checks for updates on a regular basis and helps you stay current with all the latest fixes and features. The information on this page discusses how to create an offline installation package of files for installation on the local machine.
If you are an enterprise IT administrator who wants to perform a deployment of Visual Studio to a network of client workstations, or if you need to create an installation package of files to transfer to or install onto another machine, refer to our Visual Studio Administrators Guide and the Create a network-based installation of Visual Studio documentation.
Use the "Download all, then install" feature
Sometimes online access is problematic. For example, you might have an unreliable internet connection or your internet connection may have low bandwidth. For situations like these, we've made other methods available for acquiring Visual Studio. You can use the Download all, then install feature from the Visual Studio Installer to download an installation package on the local machine before you install, or you can use the command line to create a local installation package to install later.
To download a local installation package, select the Download all, then install option in the dropdown at the bottom of the Workloads tab of the Visual Studio Installer. The purpose of this feature is to frontload the downloading of the Visual Studio packages onto the same computer that you plan on eventually installing Visual Studio on. By downloading the packages locally first, you can then safely disconnect from the internet before you install Visual Studio.
The Download all, then install functionality downloads a Visual Studio installation package that is customized to the local machine. Do not try to transfer this downloaded installation package to another computer, as it's not designed to work that way. Instead, if you want to download an installation package and transfer it to or install it on another machine, then you'll need to create a layout as described in the Create a network-based installation of Visual Studio documentation.
You can also configure future updates of this instance of Visual Studio to respect the Download all, then install behavior. For more information, refer to the Customize update settings documentation.
Use the command line to create a local layout
Download the bootstrapper for the edition of Visual Studio you want and copy it into the directory that you want to serve as the source location of your local layout. Once the layout is created, you can use it to install Visual Studio. The bootstrapper is the executable that you use to create, update, and perform other Visual Stusio installation operations. You must have an internet connection to complete this.
Step 1 - Download the Visual Studio bootstrapper
To get the latest bootstrappers for Visual Studio 2017 version 15.9, download one of the files below. These bootstrappers will always install the latest version of Visual Studio 2017, no matter when you run them.
Edition | Bootstrapper |
---|---|
Visual Studio 2017 Professional version 15.9 | vs_professional.exe |
Visual Studio 2017 Enterprise version 15.9 | vs_enterprise.exe |
Visual Studio 2017 Build Tools version 15.9 | vs_buildtools.exe |
The bootstrappers listed below will always install the latest most secure version of Visual Studio 2019, no matter when you run them. Alternatively, if you want to install a specific version of Visual Studio 2019, go to the Visual Studio 2019 Releases page that has links to the fixed version bootstrappers for each servicing release, and download the one you want. Copy it into the directory that you want to serve as the location of your local layout.
Edition | Bootstrapper |
---|---|
Visual Studio 2019 Professional version 16.11 | vs_professional.exe |
Visual Studio 2019 Enterprise version 16.11 | vs_enterprise.exe |
Visual Studio 2019 Build Tools version 16.11 | vs_buildtools.exe |
The bootstrappers listed below will always install the latest most secure version of Visual Studio 2022 on the Current channel, no matter when you run them. Alternatively, if you want to install a specific version or a specific channel of Visual Studio 2022, go to the Visual Studio 2022 Release History page that has links to the evergreen and fixed version bootstrappers for each servicing release on each channel, and download the one you want. Copy it into the directory that you want to serve as the location of your local layout.
Edition | Bootstrapper |
---|---|
Visual Studio 2022 Community | vs_community.exe |
Visual Studio 2022 Professional | vs_professional.exe |
Visual Studio 2022 Enterprise | vs_enterprise.exe |
Visual Studio 2022 Build Tools | vs_buildtools.exe |
If you previously downloaded a specific bootstrapper file and want to verify what version it will install, here's how. In Windows, open File Explorer, right-click the bootstrapper file, choose Properties, choose the Details tab, and then view the Product version number. To match that number to a release of Visual Studio, refer to the table at the bottom of the Visual Studio 2019 Releases page.
If you previously downloaded a bootstrapper file and want to verify what version it will install, here's how. In Windows, open File Explorer, right-click the bootstrapper file, choose Properties and then choose the Details tab. The Product version field will describe the channel and version that the bootstrapper will install. The version number should always be read as "latest servicing version of what is specified", and the channel is Current unless explicitly specified. So, a bootstrapper with a Product version of LTSC 17.0 will install the latest 17.0.x servicing release that is available on the 17.0 LTSC channel. A bootstrapper with a Product version that simply says Visual Studio 2022 will install the latest version of Visual Studio 2022 on the Current channel.
Step 2 - Create a local layout
You must have an internet connection to complete this step.
Open a command prompt with administrator privileges, navigate to the directory where you downloaded the bootstrapper into, and use the bootstrapper's parameters as defined in the Use command-line parameters to install Visual Studio page to create your local layout. Common examples using the Enterprise bootstrapper are illustrated below and in the command-line parameter examples page. You can install a language other than English by changing en-US to a locale from the list of language locales, and you can use the list of components and workloads to further customize your local layout.
To prevent an error, make sure that your full installation path is less than 80 characters.
For C++ desktop development, run:
To create a complete local layout, English only, with all features (this will take a long time—we have lots of features!), run:
A complete local layout of Visual Studio requires a minimum of 35 GB of disk space. For more information, see System requirements.
A complete local layout of Visual Studio requires a minimum of 41 GB of disk space. For more information, see System requirements.
A complete local layout of Visual Studio requires a minimum of 45 GB of disk space. For more information, see System requirements.
Step 3 - Install Visual Studio from the local layout
When you install Visual Studio from a local layout, the Visual Studio installer uses the local versions of the files. But, if you select components during installation that aren't in the layout, then the Visual Studio installer will attempt to download them from the internet. To make sure that you install only the files that you've previously downloaded, use the same command-line options that you used to create the local layout. To make sure your installer doesn't try to access the internet, use the --noweb switch.
For example, if you created a local installation layout with the following command:
Then use this command to run the installation:
Then use this command to run the installation:
If you're using Visual Studio Community, you must activate it by logging into the product within 30 days of installation. Activation requires an internet connection.
If you get an error that a signature is invalid, you must install updated certificates. Open the Certificates folder in your local layout. Double-click each of the certificate files, and then click through the Certificate Manager wizard. If you're asked for a password, leave it blank.
List of language locales
Language-locale | Language |
---|---|
cs-CZ | Czech |
de-DE | German |
en-US | English |
es-ES | Spanish |
fr-FR | French |
it-IT | Italian |
ja-JP | Japanese |
ko-KR | Korean |
pl-PL | Polish |
pt-BR | Portuguese - Brazil |
ru-RU | Russian |
tr-TR | Turkish |
zh-CN | Chinese - Simplified |
zh-TW | Chinese - Traditional |
Support or troubleshooting
Sometimes, things can go wrong. If your Visual Studio installation fails, see Troubleshoot Visual Studio installation and upgrade issues for step-by-step guidance.
Visual Studio поддерживает различные конфигурации сети и компьютера. Для всех сценариев, в которых участвует локальный компьютер, рекомендуется использовать Visual Studio Installer — небольшой файл, который регулярно проверяет наличие обновлений и уведомляет вас о последних исправлениях и новых функциях. На этой странице обсуждается создание пакета установки файлов для установки на локальном компьютере в автономном режиме.
Если вы являетесь ИТ-администратором предприятия и хотите выполнить развертывание Visual Studio в сети клиентских рабочих станций или если вам нужно создать установочный пакет файлов для перемещения или установки на другой компьютер, обратитесь к руководству для администраторов Visual Studio и документации по созданию сетевой установки Visual Studio.
Использование командной строки для создания локального макета
Скачайте начальный загрузчик для нужного выпуска Visual Studio и скопируйте его в каталог, который будет использоваться в качестве исходного расположения локального макета. После создания макета его можно использовать для установки Visual Studio. Начальный загрузчик — это исполняемый файл, который используется для создания, обновления и выполнения других операций для установки Visual Studio. Для выполнения этого действия необходимо подключение к Интернету.
Шаг 1. Скачивание начального загрузчика Visual Studio
Для получения последних начальных загрузчиков Visual Studio 2017 версии 15.9 скачайте один из следующих файлов. Эти начальные загрузчики всегда будут устанавливать последнюю версию Visual Studio 2017 вне зависимости от момента их запуска.
Выпуск | Начальный загрузчик |
---|---|
Visual Studio 2017 Professional версии 15.9 | vs_professional.exe |
Visual Studio 2017 Enterprise версии 15.9 | vs_enterprise.exe |
Visual Studio 2017 Build Tools версии 15.9 | vs_buildtools.exe |
Приведенные ниже начальные загрузчики всегда будут устанавливать последнюю наиболее безопасную версию Visual Studio 2019 вне зависимости от момента их запуска. Если же вы хотите установить конкретную версию Visual Studio 2019, перейдите на страницу выпусков Visual Studio 2019 со ссылками на начальные загрузчики для конкретных версий каждого обслуживаемого выпуска и скачайте нужный. Скопируйте его в каталог, который будет использоваться в качестве исходного расположения локального макета.
Выпуск | Начальный загрузчик |
---|---|
Visual Studio 2019 Professional версии 16.11 | vs_professional.exe |
Visual Studio 2019 Enterprise версии 16.11 | vs_enterprise.exe |
Visual Studio 2019 Build Tools версии 16.11 | vs_buildtools.exe |
Приведенные ниже начальные загрузчики всегда будут устанавливать последнюю наиболее безопасную версию Visual Studio 2022 вне зависимости от момента их запуска. Если же вы хотите установить конкретную версию или конкретный канал Visual Studio 2022, перейдите на страницу выпусков Visual Studio 2022 со ссылками на начальные загрузчики для конкретных версий каждого обслуживаемого выпуска и скачайте нужный. Скопируйте его в каталог, который будет использоваться в качестве исходного расположения локального макета.
Выпуск | Начальный загрузчик |
---|---|
Visual Studio 2022 Community | vs_community.exe |
Visual Studio 2022 Professional | vs_professional.exe |
Visual Studio 2022 Enterprise | vs_enterprise.exe |
Visual Studio 2022 Build Tools | vs_buildtools.exe |
Если вы ранее скачали конкретный файл начального загрузчика и хотите проверить, какую версию он установит, см. следующие инструкции. В Windows откройте проводник, щелкните правой кнопкой мыши файл начального загрузчика, выберите Свойства, перейдите на вкладку Подробно, а затем найдите номер в строке Версия продукта. Чтобы сопоставить этот номер с выпуском Visual Studio, см. таблицу в нижней части страницы Выпуски Visual Studio 2019.
Если вы ранее скачали файл начального загрузчика и хотите проверить, какую версию он установит, см. следующие инструкции. В Windows откройте проводник, щелкните правой кнопкой мыши файл начального загрузчика, выберите Свойства и перейдите на вкладку Подробности. Поле Версия продукта отобразит канал и версию, которые установит начальный загрузчик. Номер версии следует читать как "последняя обслуживаемая конкретная версия", а канал является текущим, если явно не указано иное. Таким образом, начальный загрузчик с версией продукта канала LTSC 17.0 установит последний обслуживаемый выпуск 17.0.x, доступный на канале LTSC 17.0. Начальный загрузчик с версией продукта, указанной как "Visual Studio 2022", установит последнюю версию Visual Studio 2022 с текущего канала.
Шаг 2. Создание локального макета
Для выполнения этого этапа необходимо подключение к Интернету.
Откройте командную строку с правами администратора, перейдите в каталог, в который был скачан начальный загрузчик, и используйте параметры начального загрузчика, как указано в статье Использование параметров командной строки для установки Visual Studio, чтобы создать локальный макет. Распространенные примеры использования начального загрузчика Enterprise показаны ниже и на странице с примерами параметров командной строки. Вы можете установить язык, отличающийся от английского, изменив en-US на языковой стандарт из списка языковых стандартов. Для дальнейшей настройки локального макета можно использовать список компонентов и рабочих нагрузок.
Чтобы предотвратить ошибку, убедитесь, что путь к полной установке содержит менее 80 символов.
Для разработки классических приложений C++ выполните следующую команду:
Чтобы создать локальный макет с поддержкой только английского языка и полным набором компонентов (это будет довольно долго — компонентов у нас очень много), выполните следующую команду:
Для создания локального макета Visual Studio потребуется как минимум 35 ГБ пространства на диске. Дополнительные сведения см. в статье Требования к системе.
Для создания локального макета Visual Studio потребуется как минимум 41 ГБ пространства на диске. Дополнительные сведения см. в статье Требования к системе.
Для создания локального макета Visual Studio потребуется как минимум 45 ГБ пространства на диске. Дополнительные сведения см. в статье Требования к системе.
Шаг 3. Установка Visual Studio из локального макета
При установке Visual Studio из локального макета установщик Visual Studio использует локальные версии файлов. Но если во время установки вы выберете компоненты, которые отсутствуют в макете, установщик Visual Studio попытается скачать их из Интернета. Чтобы установить только те файлы, которые вы уже скачали, все параметры командной строки должны совпадать с теми, которые вы использовали для создания локального макета. Чтобы установщик не попытался подключиться к Интернету, используйте параметр --noweb .
Предположим, что вы создали макет локальной установки с помощью следующей команды:
В этом случае используйте для запуска установки следующую команду.
В этом случае используйте для запуска установки следующую команду.
Если вы используете Visual Studio Community, необходимо активировать его, войдя в продукт в течение 30 дней после установки. Для активации требуется подключение к Интернету.
Список языковых стандартов
Язык-языковой стандарт | Язык |
---|---|
cs-CZ | Чешский |
de-DE | Немецкий |
en-US | Английский |
es-ES | Испанский |
fr-FR | Французский |
it-IT | Итальянский |
ja-JP | Японский |
ko-KR | Корейский |
pl-PL | Польский |
pt-BR | Португальский (Бразилия) |
ru-RU | Русский |
tr-TR | Турецкий |
zh-CN | Китайский (упрощенное письмо) |
zh-TW | Китайский (традиционное письмо) |
Поддержка или устранение неполадок
Иногда возникают проблемы. Если установить Visual Studio не удается, воспользуйтесь пошаговыми указаниями в статье Устранение неполадок при установке и обновлении Visual Studio.
Все мы знаем, что сейчас Microsoft уже не выпускает автономные пакеты установки Visual Studio (установка без интернета). Настал момент, когда мне понадобилось собрать автономный установщик для Visual Studio 2017 Enterprise по инструкции Microsoft. Однако я был очень сильно удивлён, когда обнаружил, что он не работает, так как в момент установки Visual Studio всё равно пыталась скачать некоторые пакеты из интернета. Если отказывался скачивать, то установка прекращалась.
Пришлось немного повозиться, чтобы собрать автономный установщик. Всё оказалось довольно просто.
Я использовал инструкцию от Microsoft, в которой они забыли упомянуть, что надо добавлять определённый параметр при сборке установщика, иначе без этого вам всё равно потребуется интернет. Поэтому я кратко их процитирую, но не забыв упомянуть всё что необходимо.
Собираем автономный установщик Visual Studio
Скачиваем загрузчик Visual Studio ссылки на который находятся в самом начале страницы помощи от Microsoft. Я их здесь не привожу, так как они могут их изменить. Там доступно для скачивания три загрузчика:
— Visual Studio Community
— Visual Studio Professional
— Visual Studio Enterprise
Я скачиваю Visual Studio Enterprise – файл «vs_enterprise.exe».
Помещаю данный файл в корень диска «F» (вы можете поместить на любой диск, но помните для Visual Studio Enterprise требуется на диске минимум 39Гб).
Создаю на диске «F» каталог «vs_enterprise2017», в который загрузчик загрузит всё необходимое для автономной установки.
Далее в командной строке запускаю команду:
После этого запускается скачивание ресурсов:
После успешного длительного скачивания, в командной строке появится информация, что скачивание завершено успешно (зелёной надписью) или сообщит, что при скачивании возникли ошибки. Проверяйте этот момент обязательно.
Если возникли ошибки, то снова запускаем указанную выше команду. Все пакеты, которые уже скачались, будут проверены, а недостающие будут докачаны. В моём случае один государственный орган заблокировал доступ к IP Azure Microsoft и оттуда не могли качаться пакеты. Пришлось для этих целей использовать VPN, чтобы загрузчик Visual Studio скачал все необходимые установочные пакеты.
—includeRecommended –includeOptional — обязательно указываем в командной строке, чтобы качались рекомендованные и опциональные пакеты, иначе в момент установки Visual Studio определит, что ей не хватает пары пакетов и будет пытаться их качать из интернета и вам повезёт, если на той машине будет интернет.
—lang en-US – язык Visual Studio, который хотите установить. В нашем случае английский. На странице помощи Microsoft вы найдёте все доступные языки. Русский: —lang ru-RU
Установка Visual Studio
1. Запустить из каталога, в который скачались все файлы установки, файл «vs_enterprise.exe» или тот, который соответствует вашей версии Visual Studio.
2. В открывшемся окне выбора компонентов выбрать требуемые компоненты и нажать «Установить».
3. После установки перезагрузить компьютер.
Язык установки не менять на тот, который отличается от выбранного вами при скачивании языка, так как в образе только установка с тем языком, который вы указали в командной строке. Если выбрать другой языковой пакет, то Visual Studio будет пытаться скачать с сайта Microsoft файлы установки для вновь выбранного языка.
Читайте также: