安装SQL Server Management Studio 2016时无法确定安装的有效目标文件夹 [英] A valid destination folder for the install could not be determined when installing SQL Server Management Studio 2016
问题描述
在安装SSMS 2016时,出现以下错误,安装程序终止:
Whilst installing SSMS 2016, I get the following error and setup terminates:
SQL Server 2016公用文件:无法确定安装的有效目标文件夹.
SQL Server 2016 Common Files: A valid destination folder for the install could not be determined.
我尝试了以下解决方案:
I've tried the following solutions:
- 删除
%TEMP%
文件夹中的所有文件 - 检查HKLM中是否存在
BootstrapDir
- Delete all files in
%TEMP%
folder - Check that
BootstrapDir
exists in HKLM
MS网站上建议使用上述2个选项.
The above 2 options where suggested on the MS sites.
我具有管理员权限,并且我还必须补充一点,我已经在这台计算机上安装了SSMS 2016,但是我删除了它以清理一些空间.
I have administrator privileges and I must also add that I have already installed SSMS 2016 on this machine but I removed it to clean up some space.
有什么想法可以解决这个问题吗?
Any ideas what I might look for to solve this problem?
推荐答案
这是我收到的确切错误消息:
This is the exact error message I was getting:
BootstrapperEngineDataModel.OnError: Burn engine encountered error. PackageId: sql_ssms_extensions_msp_x86, ErrorType: WindowsInstaller, ErrorCode: 1807, Data: 1807, ErrorMessage: A valid destination folder for the install could not be determined., UIHint: 0
MainViewModel.AddFailedCondition: Error: Hotfix 2164 for sql_ssms_extensions (KB3182270): A valid destination folder for the install could not be determined.
MainViewModel.OnPackageError: setup failed for packageId: sql_ssms_extensions_msp_x86, package: Hotfix 2164 for sql_ssms_extensions (KB3182270), errorCode: 1807, errorMessage: A valid destination folder for the install could not be determined.
解决此问题的方法是:
启动regedit
并转到(或在注册表中搜索<c1>):
Start regedit
and go to (or search for BootstrapDir
in registry) :
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SQL Server\130\Bootstrap
在我的计算机上,BootstrapDir
指向:
In my computer, the BootstrapDir
is pointed to :
C:\ Program Files (x86) \ Microsoft SQL Server \ 130 \ Setup Bootstrap \
C:\Program Files (x86)\Microsoft SQL Server\130\Setup Bootstrap\
我将其更改为:
C:\ Program Files \ Microsoft SQL Server \ 130 \ Setup Bootstrap \
C:\Program Files\Microsoft SQL Server\130\Setup Bootstrap\
然后尝试重新安装,它可以在我的机器上运行.
Then try to reinstall again, it works on my machine.
这篇关于安装SQL Server Management Studio 2016时无法确定安装的有效目标文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!