[vs2008]Visual Studio 2008 SP1添加或删除功能提示查找SQLSysClrTypes.msi文件

图片来自网络/图文无关

前言

今天接到领导布置的一个任务,是之前同事负责的项目。离职了,现在客户有些地方需要修改,由于我之前参与过,就落在我的头上了。

然后我就把代码弄了过来,打开发现其中需要用到水晶报表。(我觉得不好用,不想占用多余的磁盘空间,就没有安装)

想想算了,大不了重新添加一下就完事了呗。

一开始都还好,没有什么问题。

等安装到"SQL Server 运行时(X64)"时,弹了一个文件查找对话框:

在安装了Visual Studio 2008 Service Pack 1之后,添加或移除功能Visual Studio可能会提示SQLSysClrTypes.msi相关文字信息如下 :

安装程序在查找SQLSysClrTypes.msi文件. 请现在插入Microsoft Visual Studio Team System 2008 Team Suite – CHS 磁盘1.

如果你安装的是Visual Studio 2008 Professional 版本或者其他版本或者是语言包提示的文字信息可能会有一些不同。

我开始以为是要SQL Server 安装文件下的SQLSysClrTypes.msi文件,试了试,不行。

接着,找了visual studio 2008 service pack中的SQLSysClrTypes.msi文件,还是不行。

于是,就上网找了一下,结果就找到了这篇文章:Feature Changes in Visual Studio 2008 SP1 may prompt for SQLSysClrTypes.msi

按照这里介绍的方法,确实可行,现在我就用我这渣渣级的英语大概翻译一下,如有错误,还请指出。

解决方法

我是Windows 10系统,安装的是Microsoft Visual Studio Team System 2008 Team Suite – CHS。

  1. 如果你没有下载Visual Studio 2008 Service Pack 1 ,请先下载。

  2. 解压下载的 VS2008 SP1文件并打开文件夹,进入到子目录vs90sp1中。

  3. 在 SQLSysClrTypes.msi文件右键复制

  4. 打开文件资源管理器 (例如: Windows 键 + 字母E) ,进入到Visual Studio 2008的安装目录。默认的是 “C:\Program Files\Microsoft Visual Studio 9.0”(32位系统)或者是“C:\Program Files (x86)\Microsoft Visual Studio 9.0” (64位系统)。

  5. 在目录中找到安装的Visual Studio产品名称并双击进入。(以我为例就是: “Microsoft Visual Studio Team System 2008 Team Suite – CHS”)。

  6. 在窗口空白处右键 新建-文件夹,输入文件夹名称 “wcu” (没有引号)。

  7. 双击打开新建的“wcu”文件夹。

  8. 在窗口空白处右键 新建-文件夹,输入文件夹名称 “smo” (没有引号)。

  9. 双击打开新建的“smo”文件夹。

  10. 在窗口空白处右键 粘贴

  11. 在提示要求 SQLSysClrTypes.msi对话框, 点击 浏览 按钮.

  12. 展开文件夹定位到步骤5中的文件夹然后点击“确认”按钮,不要选择刚刚新建的“wcu\smo”文件夹。
    以我为例就是:C:\Program Files (x86)\Microsoft Visual Studio 9.0\Microsoft Visual Studio Team System 2008 Team Suite - CHS

  13. 在提示对话框中点击确定按钮。


原文如下

  1. Download a complete layout of VS2008 SP1 if you haven’t already.

  2. Open the directory were you copied VS2008 SP1.

  3. Right click on SQLSysClrTypes.msi and select Copy.

  4. Open an Explorer window (ex: Windows key + E) and browse to the directory where you installed Visual Studio 2008. By default this is “C:\Program Files\Microsoft Visual Studio 9.0” where C:\ is your system drive.

  5. Double click on the folder that corresponds to the name of the product you installed (ex: “Microsoft Visual Studio Team System 2008 Team Suite – ENU”).

  6. Right click on empty space in the window, click New, then Folder, and type “wcu” (without quotes).

  7. Double click that new “wcu” folder to open it.

  8. Right click on empty space in the window, click New, then Folder, and type “smo” (without quotes).

  9. Double click that new “smo” folder to open it.

  10. Right click on empty space in the window and click Paste.

  11. In the dialog prompt requesting SQLSysClrTypes.msi, click the Browse button.

  12. Expand folders to select the directory you opened in step 5 and click the OK button. Do not select the “wcu\smo” directory you created.

  13. Click the OK button on the dialog prompt.


OK,本文就介绍到这里。
如果你有更好的方法,烦请告知。

原文来自:[vs2008]Visual Studio 2008 SP1添加或删除功能提示查找SQLSysClrTypes.msi文件

posted @ 2016-05-17 17:31  CodeHsu  阅读(1220)  评论(0编辑  收藏  举报