visual-studio - 无法打开 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
第2个
[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 Code 文件,然后重新安装。
推荐阅读
- bash - 无法以 root 用户身份在 centos 上执行 datediff 命令?
- python - 按“*\n”将列表内容拆分为熊猫数据框
- curl - 将 nginx 代理到 ingress-nginx 以进行迁移
- arangodb - 使用边上的数组过滤遍历 Arangodb 图
- python - 检查是否有与输入图像完全相同的图像
- sql - 多次使用值(sysguid)在循环中插入 SQL
- r - 如何找到大于 0 的最小值并返回矩阵行索引?
- wordpress - .htaccess 在所有站点上强制使用 HTTPS,并在一个特定文件夹上强制使用 HTTP
- r - R Programming - if 条件执行
- python - Elasticsearch 不返回任何值。姜戈