Visual studio 无法打开Visual Studio社区安装程序

Visual studio 无法打开Visual Studio社区安装程序,visual-studio,Visual Studio,我试图使用官方网站上的安装程序安装Visual Studio Community edition,但当我下载并运行安装程序时,它会在2秒内打开并自动关闭。我只是想不通为什么它不起作用。如有任何建议,将不胜感激 这是日志文件 Beginning of the log. Start Time: 5/1/2021 12:40:35 AM VisualStudio Bootstrapper:5/1/2021 12:40:35 AM: Commandline arguments = --env,_SFX_

我试图使用官方网站上的安装程序安装Visual Studio Community edition,但当我下载并运行安装程序时,它会在2秒内打开并自动关闭。我只是想不通为什么它不起作用。如有任何建议,将不胜感激

这是日志文件

Beginning of the log. Start Time: 5/1/2021 12:40:35 AM
VisualStudio Bootstrapper:5/1/2021 12:40:35 AM: Commandline arguments = --env,_SFX_CAB_EXE_PACKAGE:C:\Users\himan\Downloads\vs_community__557207469.1619805124.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:\Users\himan\Downloads
VisualStudio Bootstrapper:5/1/2021 12:40:35 AM: C2R signature did not exist or could not be read: 
VisualStudio Bootstrapper:5/1/2021 12:40:35 AM: Parent process name = vs_community__557207469.1619805124
VisualStudio Bootstrapper:5/1/2021 12:40:35 AM: Parent process product version = 16.9.31205.134
VisualStudio Bootstrapper:5/1/2021 12:40:35 AM: CampaignId = 557207469.1619805124
VisualStudio Bootstrapper:5/1/2021 12:40:35 AM: ResponseId not available in 'vs_setup_bootstrapper.config'. Trying to parse filename.
VisualStudio Bootstrapper:5/1/2021 12:40:35 AM: loading config settings: -update --update --layout -offline --offline --locale --layout --originalworkingdir --installLayoutPath --env
VisualStudio Bootstrapper:5/1/2021 12:40:36 AM: DownloadURL = https://aka.ms/vs/16/release/installer
VisualStudio Bootstrapper:5/1/2021 12:40:36 AM: InstallLocation = C:\Program Files (x86)\Microsoft Visual Studio\Installer
VisualStudio Bootstrapper:5/1/2021 12:40:36 AM: OfflineFilePath = 
VisualStudio Bootstrapper:5/1/2021 12:40:36 AM: LayoutLocation = 
VisualStudio Bootstrapper:5/1/2021 12:40:36 AM: ExecutableArguments = /finalizeInstall install --in "C:\ProgramData\Microsoft\VisualStudio\Packages\_bootstrapper\vs_setup_bootstrapper_202105010040360004.json" --locale en-US --activityId "56bd55db-dd7d-4194-a911-20c87ef1ffcb" --campaign "557207469.1619805124"
VisualStudio Bootstrapper:5/1/2021 12:40:36 AM: OSVersion = Microsoft Windows NT 10.0.19042.0
VisualStudio Bootstrapper:5/1/2021 12:40:36 AM: Starting to detect the existing VS and .NET...
VisualStudio Bootstrapper:5/1/2021 12:40:36 AM: Finished detecting the existing VS and .Net

第二个

[5/1/2021, 0:40:35] === Logging started: 2021/05/01 00:40:35 ===
[5/1/2021, 0:40:35] Executable: C:\Users\himan\Downloads\vs_community__557207469.1619805124.exe v16.9.31205.134
[5/1/2021, 0:40:35] --- logging level: standard ---
[5/1/2021, 0:40:35] Directory 'C:\Users\himan\AppData\Local\Temp\32171f8d8288561c0f60c0\' has been selected for file extraction
[5/1/2021, 0:40:35] Extracting files to: C:\Users\himan\AppData\Local\Temp\32171f8d8288561c0f60c0\
[5/1/2021, 0:40:35] Extraction took 375 milliseconds
[5/1/2021, 0:40:35] Executing extracted package: 'vs_bootstrapper_d15\vs_setup_bootstrapper.exe ' with commandline '  --env "_SFX_CAB_EXE_PACKAGE:C:\Users\himan\Downloads\vs_community__557207469.1619805124.exe _SFX_CAB_EXE_ORIGINALWORKINGDIR:C:\Users\himan\Downloads"'
[5/1/2021, 0:40:38] The entire Box execution exiting with result code: 0x0
[5/1/2021, 0:40:38] Launched extracted application exiting with result code: 0xc0000005
[5/1/2021, 0:40:38] === Logging stopped: 2021/05/01 00:40:38 ===


也许可以尝试卸载和删除VS代码的所有以前的文件,然后重新安装。

0xc0000005很容易熟悉。当安装程序因访问冲突而崩溃时会很糟糕。您是否获得了哈希键或可以用来测试安装程序是否在运行过程中损坏的内容?日志似乎来自Visual Studio社区版的安装,而不是Visual Studio代码。(Visual Studio和Visual Studio代码是完全不相关的产品。请仅标记相关产品。)如前所述,“错误代码“0xc0000005”通常表示“访问被拒绝”,请尝试暂时禁用任何防病毒软件,并以管理员身份运行安装程序以进行尝试。”确保你正在安装,而不是我已经试过了。它仍然不起作用。