无法使用Visual Studio Installer安装Visual Studio 2022
我已经从“ 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
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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
在您的主机文件(C:\ Windows \ System32 \ drivers \ etc \ hosts)中插入此行并享受
in your host file(C:\Windows\System32\drivers\etc\hosts) insert this line and enjoy
Microsoft的安装程序后端目前存在问题。
看看在这里Microsoft票。
There is currently an issue with Microsoft's Installer Backend.
Have a look here for the Microsoft ticket.
尝试关闭Windows防火墙并重新启动Visual Studio Installer,它对我有用。
Try to turn off windows firewall and relaunch the visual studio installer, it works for me.
尝试在虚拟机中安装VS 2022时,我遇到了这个问题。后来,最终将整个安装程序的离线布局放入主机计算机中的文件夹中。
尝试以下命令在磁盘中创建离线安装程序。
您将将整个安装程序放在文件夹中,如下所示。
请参阅此链接以获取更多选项。
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.
You will get the whole installer in a folder such as shown below.
Refer this link for more options.
我遇到同样的问题,解决方案如下:
open
c:\ windows \ system32 \ drivers \ etc et et \ hosts
with notepad ++ 作为
然后添加管理员
管理员93.184.215.201 downlation.visualstudio.microsoft.com
open
cmd提示
作为管理员
然后输入:ipconfig/flushdns
然后按enter> enter
。打开
Visual Studio Installer
I am having the same issue and the solution is as follows:
Open
C:\Windows\System32\drivers\etc\hosts
with Notepad++ asAdministrator
then add93.184.215.201 download.visualstudio.microsoft.com
Open
cmd prompt
asAdministrator
then type:ipconfig /flushdns
then pressenter
.Open
Visual Studio Installer
您可以使用VPN并针对美国。
You can use a VPN and target the USA.