安装SQL Server Management Studio 2016时无法确定安装的有效目标文件夹

Iva*_*ono 12 sql-server ssms sql-server-2016-express ssms-2016

安装SSMS 2016时,我收到以下错误并设置终止:

SQL Server 2016公用文件:无法确定安装的有效目标文件夹.

我尝试过以下解决方案:

  1. 删除文件%TEMP%夹中的所有文件
  2. 检查BootstrapDirHKLM中是否存在

以上2个选项在MS站点上建议.

我有管理员权限,我还必须补充一点,我已经在这台机器上安装了SSMS 2016,但我删除它以清理一些空间.

我有什么想法可以解决这个问题?

Ros*_*sim 20

这是我收到的确切错误消息:

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.
Run Code Online (Sandbox Code Playgroud)

解决这个问题的解决方案是:

开始regedit并转到(或BootstrapDir在注册表中搜索):

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SQL Server\130\Bootstrap
Run Code Online (Sandbox Code Playgroud)

在我的电脑中,BootstrapDir指出:

C:\ Program Files (x86)\Microsoft SQL Server\130\Setup Bootstrap \

我把它改为:

C:\ Program Files\Microsoft SQL Server\130\Setup Bootstrap \

然后尝试重新安装,它可以在我的机器上运行.