无法安装 SMSS 2016 年 3 月预览版

无法安装 SMSS 2016 年 3 月预览版

我正在尝试安装最新的 Microsoft SQL Server Management Studio 版本。安装失败前的安装日志如下:

[44C4:4610][2016-04-03T23:15:57]i000: MainViewModel.OnPackageAction: Install Started for package Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.23026
[44C4:4610][2016-04-03T23:15:57]i000: MainViewModel.OnPackageActionProgress: Percent completed: 0, Overall progress: 0
[4588:0838][2016-04-03T23:15:57]i301: Applying execute package: VCRedistD14x86, action: Install, path: C:\ProgramData\Package Cache\BFB74E498C44D3A103CA3AA2831763FB417134D1\redist\VC_redist.x86.exe, arguments: '"C:\ProgramData\Package Cache\BFB74E498C44D3A103CA3AA2831763FB417134D1\redist\VC_redist.x86.exe" /q /norestart /log %localappdata%\temp\SsmsSetup\VCRedistD14'
[44C4:4610][2016-04-03T23:15:57]i000: MainViewModel.OnPackageActionProgress: Percent completed: 50, Overall progress: 1
[44C4:4610][2016-04-03T23:15:58]i000: MainViewModel.OnPackageActionProgress: Percent completed: 50, Overall progress: 1
[44C4:4610][2016-04-03T23:15:58]i000: MainViewModel.OnPackageActionProgress: Percent completed: 50, Overall progress: 1
[4588:0838][2016-04-03T23:15:58]e000: Error 0x80070666: Process returned error: 0x666
[4588:0838][2016-04-03T23:15:58]e000: Error 0x80070666: Failed to execute EXE package.
[44C4:4610][2016-04-03T23:15:58]e000: Error 0x80070666: Failed to configure per-machine EXE package.
[44C4:4610][2016-04-03T23:15:58]i000: MainViewModel.OnPackageAction: Install Completed for package Microsoft Visual C++ 2015 Redistributable (x86) - 14.0.23026
[44C4:4610][2016-04-03T23:15:58]i319: Applied execute package: VCRedistD14x86, result: 0x80070666, restart: None
[44C4:4610][2016-04-03T23:15:58]e000: Error 0x80070666: Failed to execute EXE package.
[4588:0838][2016-04-03T23:15:58]i351: Removing cached package: VCRedistD14x86, from path: C:\ProgramData\Package Cache\BFB74E498C44D3A103CA3AA2831763FB417134D1\
[44C4:4610][2016-04-03T23:15:58]i000: MainViewModel.OnPackageActionProgress: Percent completed: 100, Overall progress: 100
[4588:0838][2016-04-03T23:15:58]i330: Removed bundle dependency provider: {b71b5744-181f-40a1-9834-6f79771f5336}
[4588:0838][2016-04-03T23:15:58]i352: Removing cached bundle: {b71b5744-181f-40a1-9834-6f79771f5336}, from path: C:\ProgramData\Package Cache\{b71b5744-181f-40a1-9834-6f79771f5336}\
[44C4:4610][2016-04-03T23:15:58]e000: MainViewModel.OnBundleAction: Bundle action failed
[44C4:4610][2016-04-03T23:15:58]i399: Apply complete, result: 0x80070666, restart: None, ba requested restart:  No
[44C4:43C0][2016-04-03T23:16:21]i000: MainViewModel.OpenUrl: Opening url: C:\Users\testuser\AppData\Local\Temp\SsmsSetup\SSMS-Setup-ENU_20160403231514.log

我不知道“进程返回错误 0x666”是什么意思。

这可能是也可能不是问题,但我注意到我的 SQL Server 2016 安装与 SMSS 安装版本不匹配。SMSS 软件是否需要与安装在我电脑上的 SQL Server 2016 版本匹配?如果是这样,升级 SQL Server 2016 的最佳方法是什么?我担心如果我升级,它可能会破坏 Visual Studio 或其他依赖于它的程序。似乎也没有办法下载旧版本的 SMSS(无论如何对于 SMSS 2016)。

答案1

如果已经安装了 14.0.23506,那么 C++ redistributable 12.0.23026 似乎会出现问题。

https://connect.microsoft.com/SQLServer/feedback/details/2549809/ssms-march-2016-preview-fails-to-install-if-a-higher-version-of-visual-c-redistributable-x86-is-installed

我能够通过添加/删除程序卸载 23506。2016 年 3 月预览版安装得很好。然后我从微软下载网站重新安装了 23506。 https://www.microsoft.com/en-us/download/details.aspx?id=48145

答案2

Dave Melton 的答案对我有用,只是 23506 的链接实际上是 23026。下载 14.0.23506 的链接在这里:https://www.microsoft.com/en-us/download/details.aspx?id=49984

我能够通过添加/删除程序卸载 23506。2016 年 3 月预览版安装得很好。然后我从微软下载网站重新安装了 23506。https://www.microsoft.com/en-us/download/details.aspx?id=48145

相关内容