Visual studio неизвестная ошибка при установке

This repo is the home of the official Visual Studio, Visual Studio for Mac, Visual Studio Subscriptions, and Scripting Technologies documentation for Microsoft. - visualstudio-docs/troubleshooting-...
title description ms.date ms.custom ms.topic helpviewer_keywords ms.assetid author ms.author manager ms.workload ms.prod ms.technology

Troubleshoot installation or upgrades

Sometimes, things can go wrong. If your Visual Studio installation or upgrade fails, this page can help.

1/6/2023

vs-acquisition

troubleshooting

{{PLACEHOLDER}}

{{PLACEHOLDER}}

556EDD3F-E365-43EE-B3DD-03AA4353F75B

anandmeg

meghaanand

jmartens

multiple

visual-studio-windows

vs-installation

Troubleshoot Visual Studio installation and upgrades

[!INCLUDE Visual Studio]

[!TIP]
Having a problem installing? We can help. We offer an installation chat (English only) support option.

This troubleshooting guide includes step-by-step instructions that should resolve most installation issues.

Online installations / updates

The following possible resolutions apply to a typical online installation. Try them in order.

1. Check whether the problem is a known issue

The first thing to check is whether or not the issue you are encountering is a known issue with the Visual Studio Installer that Microsoft is working on fixing.

::: moniker range=»vs-2019″

To see if there’s a workaround for your problem, check the Known Issues section of our release notes.

::: moniker-end

::: moniker range=»>=vs-2022″

To see if there’s a workaround for your problem, check the Known Issues section of our release notes.

::: moniker-end

2. Try repairing Visual Studio

Next, try to repair your installation. This solution fixes many common update issues. To learn how to repair, see Repair Visual Studio.

3. See what the developer community says about the error.

If repairing didn’t fix the issue, search for your error message in the Visual Studio Developer Community. Other members of the community might have found a solution or workaround to your problem.

4. Delete the installer folder (update issues)

If you encountered an issue when updating, try deleting the Visual Studio Installer folder, and then rerunning the installation bootstrapper can solve certain update failures. Doing so reinstalls the Visual Studio Installer files and resets the installation metadata.

::: moniker range=»<vs-2022″

  1. Close the Visual Studio Installer.
  2. Delete the Visual Studio Installer installation directory. Typically, the directory is C:Program Files (x86)Microsoft Visual StudioInstaller.
  3. Run the Visual Studio bootstrapper. The Visual Studio bootstrapper is a light-weight executable that initiates the install of the Visual Studio Installer and then the Visual Studio product itself. You might find the bootstrapper in your Downloads folder with a file name that follows a vs_[Visual Studio edition]__*.exe pattern. If you don’t find that application, you can download the bootstrapper by going to the Visual Studio older downloads page and clicking Download for your edition of Visual Studio. Then, run the executable to reset your installation metadata.
  4. Try to install or update Visual Studio again. If the Installer continues to fail, proceed to the Report a problem step.

::: moniker-end

::: moniker range=»=vs-2022″

  1. Close the Visual Studio Installer.
  2. Delete the Visual Studio Installer folder. Typically, the folder path is C:Program Files (x86)Microsoft Visual StudioInstaller.
  3. Run the Visual Studio Installer bootstrapper. You might find the bootstrapper in your Downloads folder with a file name that matches a vs_[Visual Studio edition]__*.exe pattern. Or, you can download the bootstrapper for your edition of Visual Studio from the Visual Studio downloads page. Then, run the executable to reset your installation metadata.
  4. Try to install or update Visual Studio again. If the Visual Studio Installer continues to fail, proceed to the Report a problem step.

::: moniker-end

5. Report the problem to support

In some situations, such as when there are corrupted files, issues might require case-by-case troubleshooting. To help us help you, follow these steps:

::: moniker range=»vs-2019″

  1. Collect your setup logs. See How to get the Visual Studio installation logs for details.
  2. Open the Visual Studio Installer, and then click Report a problem to open the Visual Studio Feedback tool.
    Screenshot showing the Provide feedback button in the Visual Studio Installer.
  3. Give your problem report a title, and provide relevant details. Click Next to go to the Attachments section, and then attach the generated log file (typically, the file is at %TEMP%vslogs.zip).
  4. Click Next to review your problem report, and then click Submit.

::: moniker-end

::: moniker range=»>=vs-2022″

  1. Collect your setup logs. See How to get the Visual Studio installation logs for details.
  2. Open the Visual Studio Installer, and then choose Report a problem to open the Visual Studio Feedback tool.
    Screenshot showing the Provide feedback button in the Visual Studio Installer.
  3. Give your problem report a title, and provide the relevant details. The most recent setup log for the Visual Studio Installer is automatically added to the Additional attachments section of your problem report.
  4. Choose Submit.

::: moniker-end

6. Remove all Visual Studio installation files

As a last resort, you can remove all Visual Studio installation files and product information:

  1. Follow the steps in this article: Remove Visual Studio page.
  2. Rerun the Visual Studio Installer bootstrapper. You might find the bootstrapper in your Downloads folder with a file name that matches a vs_[Visual Studio edition]__*.exe pattern. Or, you can download the bootstrapper for your edition of Visual Studio from the Visual Studio downloads page.
  3. Try to reinstall Visual Studio.

::: moniker range=»>=vs-2022″

7. Rollback to a previous install

[!IMPORTANT]
Before you try to rollback, learn more about the rollback feature in Visual Studio.

Rollback may be disabled or your rollback attempt may be undone if you’re in an organization that has security compliance or software updating requirements. Contact your IT Administrator for further details.

If none of the previous steps helped you successfully upgrade Visual Studio, you can try to rollback to your previously installed version. Since Visual Studio 2022 version 17.4, you can rollback to your previously installed version if:

  • You haven’t installed from a layout.
  • Your original version was on the Current channel version 17.1.7 or higher, or on the 17.0 Fall 2021 LTSC channel 17.0.10 or higher.

You can rollback to your previously installed version by using the Visual Studio Installer or by using the command line.

To rollback using the Visual Studio Installer:

  1. Launch the Visual Studio Installer on your computer.
  2. In the installer, look for the edition of Visual Studio that you installed.
  3. Choose More.
  4. Choose Rollback to previous version.
    :::image type=»content» source=»media/vs-2022/rollback-from-previous-version.png» alt-text=»Screenshot of the Rollback to previous version option.»:::
  5. Select OK to confirm your choice.

8. Contact our live chat

If none of the previous steps help you successfully install or upgrade Visual Studio, contact us by using our live chat support option (English only) for further assistance.

::: moniker-end

::: moniker range=»vs-2019″

7. Contact our live chat

If none of the previous steps help you successfully install or upgrade Visual Studio, contact us by using our live chat support option (English only) for further assistance.

::: moniker-end

Network layout or offline installations

To resolve issues with a network installation, see Error Codes or Troubleshoot network-related errors when you install or use Visual Studio.

Administrator Updates

Administrator updates may not be applied correctly due to a variety of situations. Refer to the Administrator updates troubleshooting error codes for further information.

Collect installation logs for Microsoft Support

If you contact Microsoft Support, you might be asked to collect setup logs by using the Microsoft Visual Studio and .NET Framework log collection tool. The log collection tool collects setup logs from all components installed by Visual Studio, including .NET Framework, Windows SDK, and SQL Server. It also collects computer information, a Windows Installer inventory, and Windows event log information for the Visual Studio Installer, Windows Installer, and System Restore.

To collect the logs:

  1. Download the tool.

  2. Open an administrative command prompt.

  3. Run Collect.exe in the folder where you saved the tool.

    The tool must be run under the same user account that the failed installation was run under. If you are running the tool from a different user account, set the –user:<name> option to specify the user account under which the failed installation was run. Run Collect.exe -? from an administrator command prompt for additional options and usage information.

The tool generates a vslogs.zip file in your %TEMP% folder, typically at C:UsersYourNameAppDataLocalTempvslogs.zip.

Problems installing WebView2

If your organization’s Group policies block the installation of the WebView2 component, you won’t be able to install Visual Studio since the installer requires WebView2 to be installed. If this happens, check these policies:

  • If the Microsoft Edge ‘Install (WebView)’ is configured, it determines whether WebView2 can be installed.
  • If the Microsoft Edge ‘Install (WebView)’ policy is not configured, the Microsoft Edge ‘InstallDefault’ policy determines whether WebView2 can be installed.

[!Warning]
If neither policy is configured, WebView2 installation is allowed by your organization.

удалил Visual Studio 2015 community и решил поставить Visual Studio 2017 community, первая установка была с аналогичной ошибкой переустановка вроде помогла, потом обновил винду и студия перестала запускаться, теперь переустановка
не помогает…:

Не удалось установить перечисленные рабочие нагрузки и компоненты в продукте из-за сбоев в пакете.

Неполные рабочие нагрузки
    Разработка игр на языке C++ (Microsoft.VisualStudio.Workload.NativeGame,version=15.0.26228.0)
    Разработка классических приложений на C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26228.0)

Неполные компоненты
    JIT-отладчик (Microsoft.VisualStudio.Component.Debugger.JustInTime,version=15.0.26208.0)
    Базовые компоненты для классических приложений на Visual C++ (Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core,version=15.0.26208.0)
    Пакет Windows 10 SDK (10.0.14393.0) (Microsoft.VisualStudio.Component.Windows10SDK.14393,version=15.0.26208.0)

Вы можете искать решения по сведениям ниже, изменить выбор рабочих нагрузок и компонентов и повторить установку, или же удалить продукт с компьютера.

Ниже перечислены отдельные сбои в пакете, которые сделали перечисленные выше рабочие нагрузки и компоненты неполными. Чтобы найти имеющиеся отчеты об этих проблемах, скопируйте и вставьте URL-адрес из сообщения о сбое пакета в адресную
строку веб-браузера. Если о проблеме уже сообщалось, вы сможете найти решения или обходные пути. В противном случае вы можете создать новую запись о проблеме, в которой другие пользователи смогут найти решения или обходные
пути.

Не удалось установить пакет «Win10SDK_10.0.14393.795,version=10.0.14393.79501».
    URL-адрес поиска: https://aka.ms/VSSetupErrorReports?q=PackageId=Win10SDK_10.0.14393.795;PackageAction=Install;ReturnCode=-532462766
    Затронутые рабочие нагрузки
        Разработка игр на языке C++ (Microsoft.VisualStudio.Workload.NativeGame,version=15.0.26228.0)
        Разработка классических приложений на C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26228.0)
    Затронутые компоненты
        Пакет Windows 10 SDK (10.0.14393.0) (Microsoft.VisualStudio.Component.Windows10SDK.14393,version=15.0.26208.0)
    Журнал
        C:UsersGeorgeAppDataLocalTempdd_setup_20170326155428_001_Win10SDK_10.0.14393.795.log
    Сведения
        Команда выполнена: «c:windowssyswow64\windowspowershellv1.0powershell.exe» -NoLogo -NoProfile -ExecutionPolicy Unrestricted -InputFormat None -Command «& «»»C:ProgramDataMicrosoftVisualStudioPackagesWin10SDK_10.0.14393.795,version=10.0.14393.79501WinSdkInstall.ps1″»»
-SetupExe sdksetup.exe -SetupLogFolder standalonesdk -PackageId Win10SDK_10.0.14393.795 -LogFile «»»C:UsersGeorgeAppDataLocalTempdd_setup_20170326155428_001_Win10SDK_10.0.14393.795.log»»» -SetupParameters «»»/features
OptionId.AvrfExternal OptionId.WindowsSoftwareDevelopmentKit OptionId.WindowsSoftwareLogoToolkit OptionId.NetFxSoftwareDevelopmentKit /quiet /norestart»»»; exit $LastExitCode»
        Код возврата: -532462766
        Сведения о коде возврата: Неизвестная ошибка (0xe0434352)

Не удалось установить пакет «Microsoft.VisualStudio.Debugger.JustInTime,version=15.0.26208.0».
    URL-адрес поиска: https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.VisualStudio.Debugger.JustInTime;PackageAction=Install;ReturnCode=-532462766
    Затронутые рабочие нагрузки
        Разработка классических приложений на C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=15.0.26228.0)
    Затронутые компоненты
        JIT-отладчик (Microsoft.VisualStudio.Component.Debugger.JustInTime,version=15.0.26208.0)
        Базовые компоненты для классических приложений на Visual C++ (Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core,version=15.0.26208.0)
    Журнал
        C:UsersGeorgeAppDataLocalTempdd_setup_20170326155428_002_Microsoft.VisualStudio.Debugger.JustInTime.log
    Сведения
        Команда выполнена: «c:windowssyswow64\windowspowershellv1.0powershell.exe» -ExecutionPolicy Unrestricted -NoLogo -NoProfile -Command «& «»»C:ProgramDataMicrosoftVisualStudioPackagesMicrosoft.VisualStudio.Debugger.JustInTime,version=15.0.26208.0RegisterJustInTimeDebugger.ps1″»»
-Operation Modify -InstallationId f2861649 -InstallationPackages Microsoft.VisualStudio.Component.CoreEditor,Microsoft.VisualStudio.Component.Roslyn.Compiler,Microsoft.VisualStudio.Component.Static.Analysis.Tools,Microsoft.VisualStudio.Component.Windows10SDK.14393,Microsoft.VisualStudio.Component.Graphics.Win81,Microsoft.VisualStudio.Component.VC.CoreIde,Microsoft.VisualStudio.Component.VC.Tools.x86.x64,Microsoft.VisualStudio.Component.Graphics.Tools,Microsoft.VisualStudio.Component.Debugger.JustInTime,Microsoft.Component.MSBuild,Microsoft.VisualStudio.Component.TextTemplating,Microsoft.VisualStudio.ComponentGroup.NativeDesktop.Core,Microsoft.VisualStudio.Component.VC.DiagnosticTools,Microsoft.VisualStudio.Component.VC.CMake.Project,Microsoft.VisualStudio.Component.VC.ATL;
[Environment]::Exit(0)»
        Код возврата: -532462766
        Сведения о коде возврата: Неизвестная ошибка (0xe0434352)

Как исправить ошибку 0x80240017 при установке распространяемых компонентов Visual C++ 2015 и 2017Очень распространенная проблема при установке Распространяемого пакета Visual C++ 2015 и 2017 в Windows 7 и 8.1 — неопознанная ошибка 0x80240017 после запуска файла установки vc_redist.x64.exe или vc_redist.x86.exe с сообщением «Настройка не завершена», причем разобраться, в чем именно дело и как исправить ситуацию подчас бывает сложно. Примечание: если

В этой инструкции подробно о том, чем может быть вызвана такая ситуация, как исправить ошибку 0x80240017 и установить Visual C++ Redistributable в Windows 7 или 8.1. Примечание: если вы уже всё испробовали, но ничего не помогает, можно использовать неофициальный способ установки библиотек, который описан в конце инструкции Как скачать и установить Visual C++ 2008-2017 Redistributable, с большой вероятностью установка пройдет без ошибок.

Исправление ошибки 0x80240017 при установке компонентов Visual C++ 2015 и 2017

Чаще всего причиной неопознанной ошибки 0x80240017 при установке распространяемых компонентов Visual C++ 2015 (2017) являются те или иные неполадки Центра Обновлений Windows 7 или Windows 8.1.

Неопознанная ошибка 0x80240017 при установке Visual C++ 2015

Если вы каким-то образом блокировали или отключали центр обновлений Windows, использовали «активаторы» — всё это может привести к рассматриваемой проблеме.

В том случае, если ничто из указанного не делалось, а на компьютере или ноутбуке установлена чистая лицензионная Windows, сначала попробуйте следующие простые методы решения проблемы:

  1. При наличии стороннего антивируса или файрволла временно отключите его и попробуйте временно его отключить и повторить установку.
  2. Попробуйте использовать встроенное устранение неполадок: Панель управления — Устранение неполадок — Устранение неполадок Центра обновления Windows, в разделе «Система и безопасность» или «Просмотр всех категорий». Устранение неполадок центра обновлений Windows
  3. Установите обновление KB2999226 для вашей системы. Если при установке обновления возникнут проблемы, далее будет описан возможный путь решения. Скачать KB2999226 можно с официального сайта:
    • https://www.microsoft.com/ru-RU/download/details.aspx?id=49077 — Windows 7 x86 (32 бита)
    • https://www.microsoft.com/ru-ru/download/details.aspx?id=49093 — Windows 7 x64
    • https://www.microsoft.com/ru-ru/download/details.aspx?id=49071 — Windows 8.1 32-бит
    • https://www.microsoft.com/ru-RU/download/details.aspx?id=49081 — Windows 8.1 64-бит

Если ничто из этого не сработало, либо не удалось исправить ошибки Центра управления и установить обновление KB2999226, попробуйте следующие варианты.

Дополнительные способы исправить ошибку

Если при устранении неполадок были выявлены ошибки центра обновления, но они не были исправлены, попробуйте такой метод: запустите командную строку от имени администратора, а затем по порядку введите следующие команды, нажимая Enter после каждой из них:

net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
ren C:WindowsSoftwareDistribution SoftwareDistribution.old
ren C:WindowsSystem32catroot2 catroot2.old
net start wuauserv
net start cryptSvc
net start bits
net start msiserver

Затем вновь попробуйте выполнить установку компонентов Visual C++ нужной версии. Подробнее про исправление ошибок центра обновления Windows вручную.

На некоторых системах с Windows 7 и 8.1 вы можете получить сообщение о том, что обновление KB2999226 не применимо к вашему компьютеру. В этом случае попробуйте сначала установить компоненты «Универсальная среда выполнения C для Windows 10» (не обращайте внимание на название, сам файл предназначен именно для 7-ки, 8 и 8.1) с официального сайта https://www.microsoft.com/ru-ru/download/details.aspx?id=48234, затем перезагрузить компьютер и повторить попытку установки обновления.

Если и это не помогло, для установки обновления KB2999226, можно использовать такие шаги:

  1. Скачайте файл обновления с расширением .msu с официального сайта.
  2. Распакуйте этот файл: его можно открыть с помощью обычного архиватора, например, 7-Zip успешно это делает. Внутри вы увидите несколько файлов, один из них — файл .CAB с указанием номера обновления, например, Windows6.1-KB2999226-x64.cab (для Windows 7 x64) или Windows8.1-KB2999226-x64.cab (для Windows 8.1 x64). Скопируйте этот файл в удобное расположение (лучше не на рабочий стол, а, например, в корень диска C:, так будет проще вводить путь в следующей команде). Распаковка файла обновления KB2999226
  3. Запустите командную строку от имени администратора, введите команду (используя свой путь к файлу .cab с обновлением): DISM.exe /Online /Add-Package /PackagePath:C:Windows6.1-KB2999226-x64.cab и нажмите Enter.
  4. Похожий путь, но без предварительной распаковки файла .msu — команда wusa.exe путь_к_файлу_обновления.msu в командной строке, запущенной от имени администратора и без каких либо параметров.

И наконец, если всё пройдет успешно, то обновление будет установлено. Перезагрузите компьютер и проверьте, появляется ли неопознанная ошибка 0x80240017 «Настройка не завершена» при установке Visual C++ 2015 (2017) в этот раз.

Понравилась статья? Поделить с друзьями:
  • Visual studio как изменить цветовую схему
  • Visual studio как изменить цвет кнопки
  • Visual studio как изменить горячие клавиши
  • Visual studio как изменить версию языка
  • Visual studio как изменить версию net framework