Can you please follow the cleanup steps and retry your VS install, run the InstallCleanup.exe tool will remove installation files and product information for all installed instances of Visual Studio 2017 or Visual Studio 2019:
See if you have this file on your machine: “%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe”
If so, please launch it from an admin command prompt with a -full param
InstallCleanup.exe –full
If not, please manually delete the "%programfiles(x86)%\Microsoft Visual Studio\Installer” folder
Relaunch the newly downloaded vs_enterprise.exe (or vs_professional.exe or vs_community.exe…)
Allow the first step to install the installer
Once the installer comes up and you can see workload choices (.net desktop and the like), close it
Go launch the same InstallCleanup.exe to clean up old build of VS
Verify that your initial install location for VS is removed. If it is not, delete it manually.
Then relaunch vs_enterprise.exe and install VS
請按照清理步驟,重試您的 VS 安裝, 運行 InstallCleanup.exe 工具將刪除安裝文件和產品信息的所有安裝實例 Visual Studio 2017 或 Visual Studio 2019:
查看計算機上是否有此文件: “%programfiles(x86)%\Microsoft Visual Studio\Installer\resources\app\layout\InstallCleanup.exe”
如果是這樣,請從帶有 -完整參數的管理員命令提示符啓動它
InstallCleanup.exe –full
如果沒有,請手動刪除 "%programfiles(x86)%\Microsoft Visual Studio\Installer”文件夾
重新啓動新下載的vs_enterprise.exe(或vs_professional.exe 或vs_community.exe…)
允許安裝安裝程序的第一步
安裝程序出現後,您可以看到工作負載選項(.net 桌面等),將其關閉
去啓動相同的安裝清理.exe 以清理 VS 的舊版本
驗證您的 VS 初始安裝位置已被刪除。如果不是,請手動刪除它。
然後重新啓動vs_enterprise.exe 並安裝 VS