Visual Studio "15" 预览卸载
Visual Studio "15" Preview uninstall
我正在尝试安装 VS“15”预览版 5,我已经启动了新的安装程序,现在提示我必须卸载以前的版本(预览版 4)。
当我单击删除按钮时,卸载过程失败,这是日志文件中的错误:
2016-10-05T23:20:59 : Verbose : Getting installed product. [installerId: SetupEngine, installationId: 9554cc50, productId: Microsoft.VisualStudio.Product.Enterprise]
2016-10-05T23:20:59 : Verbose : Calling SetupEngine.Installer.UninstallProduct. [installPath: 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview']
2016-10-05T23:20:59 : Error : Failed to get installed product. [installerId: SetupEngine, installationId: 9554cc50, productId: Microsoft.VisualStudio.Product.Enterprise, error: Sequence contains more than one element at at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
at Microsoft.VisualStudio.Setup.Cache.CommonExtensions.GetProduct(IInstance instance, Boolean installedOnly)
at Microsoft.VisualStudio.Setup.InstalledProductsProviderService.CorrectChannelInformation(Instance instance)
at Microsoft.VisualStudio.Setup.InstalledProductsProviderService.GetInstalledProductForPathImpl(String path)
at Microsoft.VisualStudio.Setup.InstalledProductsProviderService.GetInstalledProductImpl(InstalledProductSummary productSummary)
at Microsoft.VisualStudio.Setup.InstalledProductsProviderService.GetInstalledProduct(InstalledProductSummary productSummary)]
2016-10-05T23:20:59 : Verbose : SetupEngine.Installer.UninstallProduct reported error. [InvalidOperationException: Sequence contains more than one element at at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
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.Uninstall(CancellationToken token)
at Microsoft.VisualStudio.Setup.InstallerService.UninstallProductImpl(InstalledProductSummary productSummary, TelemetryContext telemetryContext, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Setup.InstallerService.UninstallProduct(InstalledProductSummary productSummary, TelemetryContext telemetryContext, CancellationToken cancellationToken)]
2016-10-05T23:21:00 : Verbose : Getting installed product summaries. [installerId: SetupEngine]
2016-10-05T23:21:00 : Verbose : Getting product summaries. [installerId: SetupEngine]
有人可以帮助我吗?
您必须先卸载 Visual Studio“15”的所有先前版本,然后才能尝试预览版 5,并且可以通过 Visual Studio 安装程序或使用 Control 中的“卸载程序”卸载先前版本控制板。当 Visual Studio 安装程序无法运行时,我们可以手动删除 Visual Studio 如下:
关闭 Visual Studio 安装程序
删除文件夹 %ProgramData%\Microsoft\VisualStudio\Packages\
删除Visual Studio文件夹安装文件夹(一般在%ProgramFiles(x86)%\Microsoft Visual Studio\VS15Preview下)
之后把之前的安装去掉。再次启动 Visual Studio Preview ‘15’ 的安装程序进行安装
更多关于VS预览版‘15’安装的详细信息,可以查看here.
我正在尝试安装 VS“15”预览版 5,我已经启动了新的安装程序,现在提示我必须卸载以前的版本(预览版 4)。 当我单击删除按钮时,卸载过程失败,这是日志文件中的错误:
2016-10-05T23:20:59 : Verbose : Getting installed product. [installerId: SetupEngine, installationId: 9554cc50, productId: Microsoft.VisualStudio.Product.Enterprise]
2016-10-05T23:20:59 : Verbose : Calling SetupEngine.Installer.UninstallProduct. [installPath: 'C:\Program Files (x86)\Microsoft Visual Studio\VS15Preview']
2016-10-05T23:20:59 : Error : Failed to get installed product. [installerId: SetupEngine, installationId: 9554cc50, productId: Microsoft.VisualStudio.Product.Enterprise, error: Sequence contains more than one element at at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
at Microsoft.VisualStudio.Setup.Cache.CommonExtensions.GetProduct(IInstance instance, Boolean installedOnly)
at Microsoft.VisualStudio.Setup.InstalledProductsProviderService.CorrectChannelInformation(Instance instance)
at Microsoft.VisualStudio.Setup.InstalledProductsProviderService.GetInstalledProductForPathImpl(String path)
at Microsoft.VisualStudio.Setup.InstalledProductsProviderService.GetInstalledProductImpl(InstalledProductSummary productSummary)
at Microsoft.VisualStudio.Setup.InstalledProductsProviderService.GetInstalledProduct(InstalledProductSummary productSummary)]
2016-10-05T23:20:59 : Verbose : SetupEngine.Installer.UninstallProduct reported error. [InvalidOperationException: Sequence contains more than one element at at System.Linq.Enumerable.SingleOrDefault[TSource](IEnumerable`1 source)
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.Uninstall(CancellationToken token)
at Microsoft.VisualStudio.Setup.InstallerService.UninstallProductImpl(InstalledProductSummary productSummary, TelemetryContext telemetryContext, CancellationToken cancellationToken)
at Microsoft.VisualStudio.Setup.InstallerService.UninstallProduct(InstalledProductSummary productSummary, TelemetryContext telemetryContext, CancellationToken cancellationToken)]
2016-10-05T23:21:00 : Verbose : Getting installed product summaries. [installerId: SetupEngine]
2016-10-05T23:21:00 : Verbose : Getting product summaries. [installerId: SetupEngine]
有人可以帮助我吗?
您必须先卸载 Visual Studio“15”的所有先前版本,然后才能尝试预览版 5,并且可以通过 Visual Studio 安装程序或使用 Control 中的“卸载程序”卸载先前版本控制板。当 Visual Studio 安装程序无法运行时,我们可以手动删除 Visual Studio 如下:
关闭 Visual Studio 安装程序
删除文件夹 %ProgramData%\Microsoft\VisualStudio\Packages\
删除Visual Studio文件夹安装文件夹(一般在%ProgramFiles(x86)%\Microsoft Visual Studio\VS15Preview下)
之后把之前的安装去掉。再次启动 Visual Studio Preview ‘15’ 的安装程序进行安装 更多关于VS预览版‘15’安装的详细信息,可以查看here.