无法使用Visual Studio Installer安装Visual Studio 2022

发布于 2025-01-28 02:43:28 字数 1500 浏览 2 评论 0原文

我已经从“ https://visualstudio.microsoft.com/downloads/”下载了Visual Studio安装程序。 下载安装程序文件后,当我单击安装时,它说“准备好视觉工作室安装程序”,此后什么都不会发生。我的互联网连接很好,能够浏览和下载其他文件。

也尝试了此解决方案以及 https://learn.microsoft.com/en-us/aswers/questions/questions/216897/visual-studio-2019-eror-unable-unaple-to-download-instal.html 也尝试了重新开始后尝试机器。仍然有同样的问题。您可以找到屏幕截图以获取更多信息。

谁能提出可能是问题的。谢谢

我可以找到以下日志

[5/11/2022,16:53:28] ===登录开始:2022/05/11 16:53:28 =============== [5/11/2022,16:53:28]可执行文件:c:\ users {userAme} \ downloads \ vs_community.exe v15.9.258307.1974 [5/11/2022,16:53:28] - - 记录级别:标准--- [5/11/2022,16:53:28]目录'C:\ users {用户名} \ appdata \ local \ temp \ temp \ 481074b13093fff3a2'已被选择用于文件提取 [5/11/2022,16:53:28]将文件提取到:c:\ users {userName} \ appdata \ local \ temp \ temp \ 481074b13093fff3a2
[5/11/2022,16:53:28]提取花了265毫秒 [5/11/2022,16:53:28]执行提取的软件包:'vs_bootstrapper_d15 \ vs_setup_bootstrapper.exe'with commandline'-env“ _sfx_cab_exe_exe_package:c:c:c:\ USERS} \ users} \ vs_comm IR:C: \用户{username} \ downloads“'' [5/11/2022,16:55:43]整个盒子执行使用结果代码:0x0 [5/11/2022,16:55:43]启动了带有结果代码的提取的申请:0x138c [5/11/2022,16:55:43] ===记录停止:2022/05/11 16:55:43 ==================

I have downloaded visual studio installer from "https://visualstudio.microsoft.com/downloads/"
once its downloaded the installer file, when I click on install it says "Getting visual studio installer ready" and nothing happens after that. my internet connection is good and able to browse and download other files.

Tried this solution as well https://learn.microsoft.com/en-us/answers/questions/216897/visual-studio-2019-error-unable-to-download-instal.html and also tried after restarting machine. still having the same problem. you can find the screenshot for more information.

can anyone suggest what could be the issue. thanks

enter image description here

I could find the following log

[5/11/2022, 16:53:28] === Logging started: 2022/05/11 16:53:28 ===
[5/11/2022, 16:53:28] Executable: C:\Users{username}\Downloads\vs_Community.exe v15.9.28307.1974
[5/11/2022, 16:53:28] --- logging level: standard ---
[5/11/2022, 16:53:28] Directory 'C:\Users{username}\AppData\Local\Temp\481074b13093fff3a2' has been selected for file extraction
[5/11/2022, 16:53:28] Extracting files to: C:\Users{username}\AppData\Local\Temp\481074b13093fff3a2
[5/11/2022, 16:53:28] Extraction took 265 milliseconds
[5/11/2022, 16:53:28] Executing extracted package: 'vs_bootstrapper_d15\vs_setup_bootstrapper.exe ' with commandline ' --env "_SFX_CAB_EXE_PACKAGE:C:\Users{username}\Downloads\vs_Community.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:\Users{username}\Downloads"'
[5/11/2022, 16:55:43] The entire Box execution exiting with result code: 0x0
[5/11/2022, 16:55:43] Launched extracted application exiting with result code: 0x138c
[5/11/2022, 16:55:43] === Logging stopped: 2022/05/11 16:55:43 ===

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

染柒℉ 2025-02-04 02:43:28

在您的主机文件(C:\ Windows \ System32 \ drivers \ etc \ hosts)中插入此行并享受

93.184.215.201 download.visualstudio.microsoft.com

in your host file(C:\Windows\System32\drivers\etc\hosts) insert this line and enjoy

93.184.215.201 download.visualstudio.microsoft.com
姐不稀罕 2025-02-04 02:43:28

Microsoft的安装程序后端目前存在问题。
看看在这里Microsoft票。

There is currently an issue with Microsoft's Installer Backend.
Have a look here for the Microsoft ticket.

南薇 2025-02-04 02:43:28

尝试关闭Windows防火墙并重新启动Visual Studio Installer,它对我有用。

Try to turn off windows firewall and relaunch the visual studio installer, it works for me.

输什么也不输骨气 2025-02-04 02:43:28

尝试在虚拟机中安装VS 2022时,我遇到了这个问题。后来,最终将整个安装程序的离线布局放入主机计算机中的文件夹中。

尝试以下命令在磁盘中创建离线安装程序。

VisualStudioSetup.exe  --layout C:\VSLayout --add Microsoft.VisualStudio.Workload.Azure --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended --includeOptional

您将将整个安装程序放在文件夹中,如下所示。

请参阅链接以获取更多选项。

I had this problem when trying to install VS 2022 in a virtual machine. Later on ended up in getting an offline layout of the whole installer into a folder in host machine.

Try the below command to create an offline installer in the disk.

VisualStudioSetup.exe  --layout C:\VSLayout --add Microsoft.VisualStudio.Workload.Azure --add Microsoft.VisualStudio.Workload.ManagedDesktop --includeRecommended --includeOptional

You will get the whole installer in a folder such as shown below.

Refer this link for more options.

enter image description here

孤独患者 2025-02-04 02:43:28

我遇到同样的问题,解决方案如下:

  1. open c:\ windows \ system32 \ drivers \ etc et et \ hosts with notepad ++ 作为管理员管理员然后添加93.184.215.201 downlation.visualstudio.microsoft.com

  2. open cmd提示作为管理员然后输入:ipconfig/flushdns然后按enter> enter

  3. 打开Visual Studio Installer

I am having the same issue and the solution is as follows:

  1. Open C:\Windows\System32\drivers\etc\hosts with Notepad++ as Administrator then add 93.184.215.201 download.visualstudio.microsoft.com

  2. Open cmd prompt as Administrator then type: ipconfig /flushdns then press enter.

  3. Open Visual Studio Installer

蓝礼 2025-02-04 02:43:28

您可以使用VPN并针对美国。

You can use a VPN and target the USA.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文