【问题标题】:Why does the Visual Studio 2017 installer quit when trying to make a offline installer为什么尝试制作脱机安装程序时 Visual Studio 2017 安装程序退出
【发布时间】:2017-03-09 19:48:57
【问题描述】:

我正在使用以下命令为 Visual Studio 2017 Professional 创建离线安装程序:

vs_professional.exe --layout c:\vs2017\ --lang en-US

它会启动初始窗口,但会在几分钟内完成而无需下载任何内容。它创建文件夹,但只有证书在文件夹中。

查看 temp 目录下的安装文件,我在 dd_vs_professional_decompression_log 中找到了以下几行:

[3/9/2017, 13:18:56] The entire Box execution exiting with result code: 0x0
[3/9/2017, 13:18:56] Launched extracted application exiting with result code: 0x57

这在 dd_bootstrapper 日志中

VisualStudio Bootstrapper:3/9/2017 1:26:14 PM: Unable to parse the json file since it not exists: 0
VisualStudio Bootstrapper:3/9/2017 1:18:46 PM: Waiting for setup process to complete...
VisualStudio Bootstrapper:3/9/2017 1:18:46 PM: Vs setup process exited with code 87
VisualStudio Bootstrapper:3/9/2017 1:18:55 PM: Bootstrapper Successfully completed.

安装程序似乎从不显示下载各个组件的命令窗口。

【问题讨论】:

标签: visual-studio visual-studio-2017 failed-installation


【解决方案1】:

错误 0x57 (87) 表示ERROR_INVALID_PARAMETER

你需要使用:

vs_professional.exe --layout c:\vs2017 --lang en-US

显然,安装程序的第一部分正确处理尾部斜杠,但是如果目录包含尾部反斜杠,则第二部分(实际下载组件的部分)将失败。

【讨论】:

    【解决方案2】:

    我有同样的错误,但重新下载vs_professional.exe后解决了,后来我了解到位于安装文件夹中的文件“vs_professional.exe”与源文件不同..

    尝试再次下载文件并使用该命令,它将起作用

    问候,

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-04
      • 1970-01-01
      • 2023-03-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多