简体   繁体   English

Visual Studio 安装程序 2019 社区 16.9 崩溃

[英]Visual Studio Installer 2019 Community 16.9 crash

During update Visual Studio 2019 to latest version (16.9), setup failed.在将 Visual Studio 2019 更新到最新版本 (16.9) 期间,安装失败。 Stupidly I closed installer window without read the error.愚蠢地我关闭了安装程序 window 没有阅读错误。 When I retryed the update, the Installer crashes few seconds after start.当我重试更新时,安装程序在启动几秒钟后崩溃。 I have uninstalled wholly Visual Studio, but Installer still crash.我已经完全卸载了 Visual Studio,但安装程序仍然崩溃。 I think something is left dirty after first update fail, I tried to search in log files recoverd by collect.exe tools, but I can't found usefull information in that bilions of messages.我认为在第一次更新失败后有些东西很脏,我试图搜索由 collect.exe 工具恢复的日志文件,但我无法在那数十亿条消息中找到有用的信息。 Reinstalling Windows must be the last choice, there is a way to take crash error for undertand the problem and search for a solution?重新安装 Windows 肯定是最后的选择,有没有办法采取崩溃错误了解问题并寻求解决方案?

EDIT编辑

Also InstallCleanup.exe don't solve the problem InstallCleanup.exe 也不能解决问题

Visual Studio Installer version 2.9.3349 has problems with culture "it-IT". Visual Studio 安装程序版本 2.9.3349 存在文化“it-IT”问题。 If that's your case (as it is mine), there is a workaround here: https://developercommunity.visualstudio.com/t/Visual-Studio-Installer-crashes-after-up/1356122如果这是你的情况(因为它是我的),这里有一个解决方法: https://developercommunity.visualstudio.com/t/Visual-Studio-Installer-crashes-after-up/1356122

The workaround is to force a working locale: ./vs_installer.exe --locale en-US解决方法是强制使用有效的语言环境: ./vs_installer.exe --locale en-US

If you think your install and/or installer is corrupted, run the installation cleaner tool available at the URL below and then re-download the latest installer, from which you can get 16.9 .如果您认为您的安装和/或安装程序已损坏,请运行下面 URL 提供的安装清理工具,然后重新下载最新的安装程序,您可以从中获得16.9

https://docs.microsoft.com/en-us/visualstudio/install/remove-visual-studio?view=vs-2019 https://docs.microsoft.com/en-us/visualstudio/install/remove-visual-studio?view=vs-2019


Additionally there is a step you can try in Troubleshooting Installation Issues , specifically Step 4 (The advice above the break is actually Step 6 in this process)此外,您可以在Troubleshooting Installation Issues中尝试一个步骤,特别是第 4 步(中断上方的建议实际上是此过程中的第 6 步)

Step 4 - Delete the Visual Studio Installer directory to fix upgrade problems第 4 步 - 删除 Visual Studio 安装程序目录以修复升级问题

The Visual Studio Installer bootstrapper is a minimal light-weight executable that installs the rest of the Visual Studio Installer. Visual Studio 安装程序引导程序是一个最小的轻量级可执行文件,用于安装 Visual Studio 安装程序的 rest。 Deleting Visual Studio Installer files and then rerunning the bootstrapper might solve some update failures.删除 Visual Studio 安装程序文件,然后重新运行引导程序可能会解决一些更新失败问题。

Note笔记

Performing the following actions reinstalls the Visual Studio Installer files and resets the installation metadata.执行以下操作会重新安装 Visual Studio 安装程序文件并重置安装元数据。

  1. Close the Visual Studio Installer.关闭 Visual Studio 安装程序。
  2. Delete the Visual Studio Installer directory.删除 Visual Studio 安装程序目录。 Typically, the directory is C:\Program Files (x86)\Microsoft Visual Studio\Installer.通常,该目录是 C:\Program Files (x86)\Microsoft Visual Studio\Installer。
  3. Run the Visual Studio Installer bootstrapper.运行 Visual Studio 安装程序引导程序。 You might find the bootstrapper in your Downloads folder with a file name that follows a vs_[Visual Studio edition]__*.exe pattern.您可能会在下载文件夹中找到引导程序,其文件名遵循 vs_[Visual Studio 版本]__*.exe 模式。 If you don't find that application, you can download the bootstrapper by going to the Visual Studio downloads page and clicking Download for your edition of Visual Studio.如果您没有找到该应用程序,您可以通过转到 Visual Studio 下载页面并单击您的 Visual Studio 版本的下载来下载引导程序。 Then, run the executable to reset your installation metadata.然后,运行可执行文件以重置安装元数据。
  4. Try to install or update Visual Studio again.再次尝试安装或更新 Visual Studio。 If the Installer continues to fail, go to the next step.如果安装程序继续失败,go 进行下一步。

You have to download the installer again for the offline installation eg.您必须再次下载安装程序以进行离线安装,例如。 vs_enterprise.exe then run vs_enterprise.exe --layout " folder where you have the offline installation ". vs_enterprise.exe然后运行vs_enterprise.exe --layout您离线安装的文件夹”。 The new installer needs to download a different new configuration file vs_installer.version.json新安装程序需要下载不同的新配置文件vs_installer.version.json

https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019 https://docs.microsoft.com/en-us/visualstudio/install/create-an-offline-installation-of-visual-studio?view=vs-2019

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM