如何在没有互联网连接的情况下从 Windows PC 卸载 Visual Studio 2019

问题描述 投票:0回答:1

我需要从没有互联网连接的离线 Windows PC 上卸载 Visual Studio 2019。

当我尝试从“添加/删除程序”中卸载它时,它会打开 Visual Studio 安装程序应用程序。 然后 Visual Studio 安装程序在尝试更新自身时挂起。

我尝试使用以下选项从命令行启动它:

vs_installer.exe --noWeb --noUpdateInstaller

但是,过了一段时间,它要求更新。

我搜索过“Visual Studio Installer”的离线安装程序,但没有找到,看来微软不提供。

更新:

我已尝试使用 InstallCleanup.exe,如中所述 链接 但它在我想要卸载的 Visual Studio 2019 实例上不存在。 我尝试从另一个 VS 安装中复制它(及其 .config 文件),但它不起作用:

The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail.

谢谢

visual-studio offline uninstallation
1个回答
0
投票

这可能是一个愚蠢的问题,但是您是否在 VS 目录中搜索过 InstallCleanup.exe?文档称它位于“%ProgramFiles(x86)%\Microsoft Visual Studio”下。对我来说是“C:\Program Files (x86)\Microsoft Visual Studio\Installer\InstallCleanup.exe” 当我需要删除构建工具 2022 布局并将其替换为防火墙构建服务器上的 2019 布局时,此方法确实对我有用。 --noWeb --noUpdateInstaller 等组合无法用于并行安装或卸载 2022 组件。

“我说我们从轨道上起飞并用核武器轰炸整个站点。这是确定的唯一方法”-Ripley

© www.soinside.com 2019 - 2024. All rights reserved.