如何在Windows 11中卸载.NET 6 WindowsDesktop-Runtime 6.0.9?
卸载WindowsDesktop-Runtime 6.0.9的可行方法
方法一:通过Windows系统设置卸载
- 打开「设置」→「应用」→「应用和功能」
- 在顶部搜索框输入
WindowsDesktop-Runtime 6.0.9或关键词.NET - 找到目标运行时条目后,点击右侧「卸载」,按照提示完成操作即可
方法二:命令行卸载
方式1:借助MSI卸载(需获取产品GUID)
- 打开CMD或PowerShell,执行命令查找对应产品代码:
wmic product where "name like '%WindowsDesktop%Runtime%6.0.9%'" get Name, IdentifyingNumber - 复制输出的
IdentifyingNumber(即一串GUID),执行静默卸载命令:msiexec /x {替换为找到的GUID} /quiet
方式2:使用dotnet官方命令
直接执行以下命令卸载指定版本的Windows Desktop Runtime:
dotnet uninstall runtime Microsoft.WindowsDesktop.App 6.0.9
方法三:手动清理(仅前两种方法失效时尝试)
- 删除安装目录:默认路径为
C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\6.0.9 - 删除注册表项:打开注册表编辑器(运行
regedit),定位到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall,找到对应运行时的条目并删除
内容的提问来源于stack exchange,提问作者alex
相关产品推荐
相关产品推荐

