Visual Studio '15' Preview 5 安装错误

Visual Studio '15' Preview 5 installation error

如果我尝试安装 Visual Studio '15' Preview 5,我会收到错误消息和以下日志文​​件:

2016-10-07T18:05:42 : Verbose : SetupEngine.Installer.InstallProduct reported error.  [channelId: Microsoft.VisualStudio.Channels.Preview, productId: Microsoft.VisualStudio.Product.Enterprise, installationPath: 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview', InvalidOperationException: No products are registered for instance '45ee4dcd-d923-4bcb-8a1a-539f6a4fba3c' at    at Microsoft.VisualStudio.Setup.Cache.CommonExtensions.GetProduct(IInstance instance, Boolean installedOnly)
at Microsoft.VisualStudio.Setup.Cache.CacheRepository.GetAvailablePackages()
at Microsoft.VisualStudio.Setup.Engine.Initialize()
at Microsoft.VisualStudio.Setup.Engine.Load(IChannelProduct channelProduct, CancellationToken token)
at Microsoft.VisualStudio.Setup.Service.CreateEngine(IChannelProduct channelProduct, String instanceId, TelemetryContext telemetryContext, String localeOverride, IMessageBus messageBus, IRestartManager restartManager)
at Microsoft.VisualStudio.Setup.InstallerService.InstallProductImpl(Product product, String installationPath, String setupExecutablePath, String setupExecutableArguments, TelemetryContext telemetryContext, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Setup.InstallerService.InstallProduct(Product product, String installationPath, String setupExecutablePath, String setupExecutableArguments, TelemetryContext telemetryContext, CancellationToken cancellationToken)]

我在每个配置中都遇到了这个错误。我也尝试将语言设置为英语,因为我的主要语言不是英语。

我遇到了同样的问题。这对我有用:

要卸载 Visual Studio“15”预览版 1-3 的现代安装:

Launch the Microsoft Visual Studio Installer from the start menu.
Uninstall Visual Studio from the installer.
From Add / Remove Programs (Windows 7) or Programs and Features (Windows 8.1 and 10), select Microsoft Visual Studio Installer and uninstall.
Delete %ProgramData%\Microsoft\VisualStudio\Packages\.
Delete the Visual Studio folder (normally under %ProgramFiles(x86)%\Microsoft Visual Studio\VS15Preview).
You should now be able to install Preview 5.

不用担心,说明是针对以前的预览版的

来源:https://www.visualstudio.com/en-us/news/releasenotes/vs15-relnotes#workaround