简体   繁体   English

无法安装或卸载 Visual Studio 2017/2019

[英]Can't Install or Uninstall Visual Studio 2017/2019

I have previously installed Microsoft Visual Studio 2017 but I forgot to add the .NET component for programming in unity.我之前安装了 Microsoft Visual Studio 2017,但我忘记添加 .NET 组件以进行统一编程。 When I tried to launch the Visual Studio Installer, it shows me this:当我尝试启动 Visual Studio 安装程序时,它向我显示:

It gives me this specific error code when running the installer运行安装程序时它给了我这个特定的错误代码

Then, when I tried to download the latest version of Visual Studio 2019, it gives me two errors when running the installer:然后,当我尝试下载最新版本的 Visual Studio 2019 时,运行安装程序时出现两个错误:

Failed to download Channel.下载频道失败。 Unable to download the channel from link无法从链接下载频道

A product matching the following parameters could not be found找不到符合以下参数的产品

Also, for some reason, uninstalling it doesn't seem to work as when I tried to uninstall it via the add/remove programs on Windows 10, it says it's completing the uninstall but when I restart it's still there.此外,由于某种原因,卸载它似乎不起作用,因为当我尝试通过 Windows 10 上的添加/删除程序卸载它时,它说它正在完成卸载,但是当我重新启动它时它仍然存在。

Lastly, I've tried to use the VisualStudioUninstaller tool on GitHub but even then when using it, it still results in the same errors.最后,我尝试在 GitHub 上使用 VisualStudioUninstaller 工具,但即使在使用它时,它仍然会导致相同的错误。 I also checked my Visual Studio folders but there is no InstallCleanup.exe no matter how many times I try to run the installer.我还检查了我的 Visual Studio 文件夹,但无论我尝试运行安装程序多少次,都没有 InstallCleanup.exe。

The error you report is usually related to a corrupt or out sync .vs cache.您报告的错误通常与损坏或不同步的.vs缓存有关。 Usually, deleting the hidden folder in the root of your solution does solve the issue.通常,删除解决方案根目录中的隐藏文件夹确实可以解决问题。 If furthermore, manually cleaning the file system by deleting the bin and obj folders for each project might help sometimes.此外,有时通过删除每个项目的binobj文件夹来手动清理文件系统可能会有所帮助。

For additional troubleshooting, please have a look to Why does my visual studio closes automatically without any errors有关其他故障排除,请查看为什么我的 Visual Studio 会自动关闭而没有任何错误

faced same type of problem, during that i resolved by deleting registry files then rebooted my machine.面临同样类型的问题,在此期间我通过删除注册表文件解决了问题,然后重新启动了我的机器。

暂无
暂无

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

相关问题 我为什么看不到我的 <example> s和<code>s from Intellisense? using C# and Visual Studio 2017-2019</code> <code>s from Intellisense? using C# and Visual Studio 2017-2019</code> - Why can't I see my <example>s and <code>s from Intellisense? using C# and Visual Studio 2017-2019 Visual Studio 2017 Xamarin无法安装nuget包MvvmCross.Plugin.DownloadCache插件 - Visual Studio 2017 Xamarin can't install nuget package MvvmCross.Plugin.DownloadCache plugin 我能知道为什么 Visual Studio 2017 存档与 Visual Studio 2019 不同吗 - Can i know why Visual Studio 2017 archive is different from Visual Studio 2019 在Visual Studio 2017上安装Monogame - Install Monogame on Visual Studio 2017 如何从 Visual Studio 2019 中的 Winforms C# 项目中删除或卸载 Avalonia - How can I delete or uninstall Avalonia from Winforms C# Project in Visual Studio 2019 新的 Visual Studio 2019 中的环境变量为空,但 Visual Studio 2017 中的环境变量为空 - Environment variables null in new Visual Studio 2019 but not Visual Studio 2017 您可以在 Visual Studio 2017/2019 的调试模式下跳过剩余的断点吗? - Can you skip remaining breakpoints in debug mode in Visual Studio 2017/2019? 在Visual Studio 2017安装项目中为卸载添加自定义操作 - Add a custom action on uninstall in Visual Studio 2017 setup project Visual Studio 2019 无法使用 GPU 使用情况 - Visual Studio 2019 Can't Use GPU Usage 无法连接到 Visual Studio 2019 C# 中的 Oracle 数据库 - Can't connect to Oracle database in Visual Studio 2019 C#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM