如果我尝试安装Visual Studio' 15'预览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)]
每次配置都会出现此错误。我还尝试将语言设置为英语,因为我的主要语言不是英语。
答案 0 :(得分:5)
我遇到了同样的问题。这对我有用:
卸载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