TFS安装

前段时间一直搞TFS,差点到了崩溃的边缘!!!

 

安装环境:Windows2008+SQL Server2008SP1 + SharePoint3.0+TFS+TFSSP1

 

最大的问题是安装检测中报SQLServer版本不兼容TFS,错误详细情况如下:

A compatible version of SQL Server is not installed.

解决方案:

第一步:合并TFS和TFS的SP1包

 

集成 Team Foundation Server 和 Service Pack 1 的安装

  1. Microsoft 网站下载 SP1,并将此更新保存到本地计算机上的文件夹。

    例如,可将该文件保存到 C:\SP1Download。

  2. 将 AT 文件夹从 Team Foundation Server DVD 上生成的文件复制到本地计算机上的某个位置。

    例如,可将该文件夹复制到 C:\ InstallMedia。

  3. 打开命令提示符窗口,键入以下命令,将 C:\SP1Download 替换为在步骤 1 中选择的位置,将 C:\SP1Extract 替换为本地计算机上单独的位置:

    C:\SP1Download\TFS90SP1-KB949786-ENU /extract:C:\SP1Extract

  4. 在可将 SP1 文件与 DVD 文件合并的地方创建一个文件夹。

  5. 键入以下命令,将 C:\InstallMedia 替换为在步骤 2 中选择的位置,将 C:\SP1Extract 替换为在步骤 3 中选择的位置,将 C:\MergeFolder 替换为在步骤 4 中选择的位置的绝对路径:

    msiexec /a C:\InstallMedia\vs_setup.msi /p C:\SP1Extract\TFS90sp1-KB949786.msp TARGETDIR=C:\MergeFolder

    说明:

    必须将 C:\MergeFolder 替换为绝对路径,但可以将 C:\InstallMediaC:\SP1Extract 替换为绝对路径或相对路径。

  6. 从步骤 4 中创建的 C:\MergeFolder 运行 setup.exe 来安装 Team Foundation Server 及其 SP1。

第二步:修改MergeFolder目录下的Hcpackage.xml文件

 

6. Find the following entry:

<WQL namespace="\\.\root\Microsoft\SqlServer\ComputerManagement10" query="SELECT * FROM sqlserviceadvancedproperty WHERE ServiceName='[%VSTF_SERVICENAME_MSSQL%]' AND PropertyName='VERSION' AND PropertyStrValue&gt;='10.00.1433' AND PropertyStrValue LIKE '10.00.%'" action="=" count="0" />

7. Replace the entry that you found in step 6 with the following entry:

<WQL namespace="\\.\root\Microsoft\SqlServer\ComputerManagement10" query="SELECT * FROM sqlserviceadvancedproperty WHERE ServiceName='[%VSTF_SERVICENAME_MSSQL%]' AND PropertyName='VERSION' AND PropertyStrValue&gt;='10.00.1433' AND PropertyStrValue LIKE '10.%'" action="=" count="0" />

8. Find the following entry:

<WQL namespace="\\.\root\Microsoft\SqlServer\ComputerManagement10" query="SELECT * FROM sqlserviceadvancedproperty WHERE ServiceName='[%VSTF_SERVICENAME_MSSQL%]' AND PropertyName='VERSION' AND PropertyStrValue&gt;='10.0.1433' AND PropertyStrValue LIKE '10.0.%'" action="=" count="0" />

9. Replace the entry that you found in step 8 with the following entry:

<WQL namespace="\\.\root\Microsoft\SqlServer\ComputerManagement10" query="SELECT * FROM sqlserviceadvancedproperty WHERE ServiceName='[%VSTF_SERVICENAME_MSSQL%]' AND PropertyName='VERSION' AND PropertyStrValue&gt;='10.0.1433' AND PropertyStrValue LIKE '10.%'" action="=" count="0" />

10. Find the following entry:

<MsiProductVersionCheck prodid="[%SQLServer2008%]" action="&lt;" version="10.1" />

11. Replace the entry that you found in step 10 with the following entry:

<MsiProductVersionCheck prodid="[%SQLServer2008%]" action="&lt;" version="10.2" />

 

 

就可以顺利安装了!!!!

 

微软官网发布的信息:http://support.microsoft.com/default.aspx/kb/969985

posted @ 2009-11-21 11:27  消失的风  阅读(826)  评论(5编辑  收藏  举报