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

时间:2021-04-30 19:22:24

标签: visual-studio

我正在尝试使用官方网站上的安装程序安装 Visual Studio 社区版,但是当我下载安装程序并运行它时,它会在 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 ===

1 个答案:

答案 0 :(得分:1)

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