离线安装 MSVC

离线安装 MSVC

我下载了 MSVC 20117 以在 VirtualBox 内运行离线安装程序,然后运行:

vs_Community.exe --noweb --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional

但我仍然收到错误:

您可能未连接到网络

查看生成的日志,我看到以下内容:

2020-12-03T12:46:00 : Verbose : Visual Studio Installer (1.18.1113.826 : release) ["C:\\Program Files (x86)\\Microsoft Visual Studio\\Installer\\vs_installershell.exe","/finalizeInstall","install","--layoutPath","C:\\Users\\igor\\msvc2017","--in","C:\\Users\\igor\\msvc2017\\Response.json","--noweb","--add","Microsoft.VisualStudio.Workload.NativeDesktop","--includeRecommended","--includeOptional","--locale","en-US","--activityId","9048e0f3-53df-40d0-bf0c-3df790fb0baf","--pipe","4686f077-e5af-4e8a-a4f3-38ad5d0af050"]
2020-12-03T12:46:17 : Verbose : Received the application ready notification
2020-12-03T12:46:19 : Verbose : ProgressBarService listening to ipc channel: progress-bar
2020-12-03T12:46:19 : Verbose : LoggerIpcRpcService listening to ipc channel: LoggerService
2020-12-03T12:46:19 : Verbose : LoggerIpcRpcService listening to ipc channel: LoggerService
2020-12-03T12:46:19 : Verbose : Telemetry Session ID: b73cb039-2177-46ac-a792-49c61b1cd05c
2020-12-03T12:46:19 : Verbose : Starting ServiceHub Remote Settings client.
2020-12-03T12:46:20 : Verbose : Creating VS Telemetry Survey
2020-12-03T12:46:20 : Verbose : Creating commonError Service
2020-12-03T12:46:21 : Verbose : starting rpc process for common error
2020-12-03T12:46:21 : Verbose : RPC Factory: Get common error config provider
2020-12-03T12:46:21 : Verbose : FeaturesIpcRpcService listening to ipc channel: FeaturesProxy
2020-12-03T12:46:21 : Verbose : FeaturesIpcRpcService listening to ipc channel: FeaturesProxy
2020-12-03T12:46:21 : Verbose : Starting the installer service.
2020-12-03T12:46:25 : Verbose : Installation finalized successfully.
2020-12-03T12:46:32 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '0'
2020-12-03T12:46:32 : Error : Retrying attempted connection to service 'Installer' - attempt '0'
2020-12-03T12:46:34 : Verbose : Window showing
2020-12-03T12:46:34 : Verbose : No pipe connection
2020-12-03T12:46:37 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '1'
2020-12-03T12:46:37 : Error : Retrying attempted connection to service 'Installer' - attempt '1'
2020-12-03T12:46:42 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '2'
2020-12-03T12:46:42 : Error : Retrying attempted connection to service 'Installer' - attempt '2'
2020-12-03T12:46:47 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '3'
2020-12-03T12:46:48 : Error : Retrying attempted connection to service 'Installer' - attempt '3'
2020-12-03T12:46:52 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '4'
2020-12-03T12:46:53 : Error : Retrying attempted connection to service 'Installer' - attempt '4'
2020-12-03T12:46:58 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '5'
2020-12-03T12:46:58 : Error : Retrying attempted connection to service 'Installer' - attempt '5'
2020-12-03T12:47:03 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '6'
2020-12-03T12:47:03 : Error : Retrying attempted connection to service 'Installer' - attempt '6'
2020-12-03T12:47:08 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '7'
2020-12-03T12:47:08 : Error : Retrying attempted connection to service 'Installer' - attempt '7'
2020-12-03T12:47:13 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '8'
2020-12-03T12:47:14 : Error : Retrying attempted connection to service 'Installer' - attempt '8'
2020-12-03T12:47:19 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '9'
2020-12-03T12:47:19 : Error : Retrying attempted connection to service 'Installer' - attempt '9'
2020-12-03T12:47:24 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '10'
2020-12-03T12:47:24 : Error : Retrying attempted connection to service 'Installer' - attempt '10'
2020-12-03T12:47:29 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '11'
2020-12-03T12:47:29 : Error : Retrying attempted connection to service 'Installer' - attempt '11'
2020-12-03T12:47:34 : Error : Retrying attempted connection to service 'RemoteSettingsClient' - attempt '12'

然后它最终死去。

我不明白这一点 - 我确实给出了 --noweb 选项。那么问题出在哪里?

相关内容