Grant Holliday posted an almost hands-free TFS 2005 installation guide and I have been going through the same process for TFS 2008 so I thought I’d point out a few differences to be aware of as well as some amendments I made to Grant’s original process:
- The obvious changes:
- Replace TFS 2005 with TFS 2008.
- Remove TFS 2005 SP1 Quiesce Hotfix and TFS 2005 SP1.
- Replace Team Plain with Team System Web Access.
- Replace Visual Studio Team Editions / Team Suite 2005 with Visual Studio Team Editions / Team Suite 2008.
- Remove Team Suite 2005 SP1.
- I pre-extracted SQL Server 2005 Service Pack 2 to reduce the time taken to install:
- SQLServer2005SP2-KB921896-x86-ENU.exe -x <TargetDir>
- WSS is no longer required separately because it is automatically installed by TFS 2008.
- Added TFS 2008 Power Tools.
- Added TFS 2008 Installation Guide.
- Added Office 2007 and Project 2007 (for building clients).
- Edit TFS08\SQL2005ForATDT.ini and update the service account credentials.
My resulting directory structure was:
Part 3 – Installing Team Foundation Server unattended
- I updated Grant’s script:
- To reflect the changes above.
- Added an INSTALLROOT environment variable in case you aren’t installing from D:\.
- Added a TFSBUILDS user to run Team Build as.
- Created users locally rather than in the domain (this was my requirement, if you want domain users simply add the /DOMAIN switch to the net user commands).
SET INSTALLROOT=D:\
SET TFSSERVICEPW=strongpassword
SET TFSREPORTSPW=strongpassword
SET TFSBUILDSPW=strongpassword
:: ############# User accounts
net user TFSSERVICE %TFSSERVICEPW% /ADD /EXPIRES:NEVER
net user TFSREPORTS %TFSREPORTSPW% /ADD /EXPIRES:NEVER
net user TFSBUILDS %TFSREPORTSPW% /ADD /EXPIRES:NEVER
ntrights -u TFSSERVICE +r SeInteractiveLogonRight
ntrights -u TFSREPORTS +r SeInteractiveLogonRight
ntrights -u TFSBUILDS +r SeInteractiveLogonRight
pause
:: ############# SQL 2005
:: # Run SQL2005 setup unattended
start /wait %INSTALLROOT%SQL05\Servers\setup.exe /qb /settings %INSTALLROOT%TFS08\SQL2005ForATDT.ini
pause
:: # Stop SQLBrowser service before SP2 install
sc stop SQLBrowser
sc config SQLBrowser start= auto
:: # Run SQL2005 SP2 unattended
start /wait %INSTALLROOT%SQLSP2\hotfix.exe /quiet /allinstances
:: # NOTE: I had an issue where after the service pack was applied the service account no longer had sysadmin access and this had to be rectified before continuing.
pause
:: ############ TFS Single-Server install
start /wait %INSTALLROOT%TFS08\at\setup.exe
pause
:: ############ VSTS install
start /wait %INSTALLROOT%VSTS08\setup.exe
pause
:: ############ TFS Team Explorer
start /wait %INSTALLROOT%TFS08\tfc\setup.exe
pause
:: ############ Team Build install
start /wait %INSTALLROOT%TFS08\BUILD\setup.exe
pause
:: ############ Team System Web Access
msiexec /i %INSTALLROOT%TFS08WA\TeamSystemWebAccess.msi /passive
pause
:: ############ Team System Power Tools
msiexec /i %INSTALLROOT%TFS08PT\tfpt.msi /passive
pause
[...] Hands-Free TFS Installation updated for TFS2008 William Bartholomew is an Australian TFS colleague who has updated my Hands-Free TFS Installation Guide for use with TFS2008. Team System Notes: Hands-Free TFS 2008 install [...]
First off, thanks, good guide. A couple things to add:
you want to give the services “logon as a service” rights rather than interactive logon, (right?)
ntrights -u TFSSERVICE +r SeServiceLogonRight
ntrights -u TFSREPORTS +r SeServiceLogonRight
ntrights -u TFSBUILDS +r SeServiceLogonRight
I substituted Team Explorer for VSTS as well as I don’t need the full setup on my server.
To install SQL to a different drive I added the following to my SQL2005forATDT.ini
INSTALLSQLDIR=”E:\Program Files\Microsoft SQL Server\”
INSTALLOLAPDATADIR=”E:\Program Files\Microsoft SQL Server\MSSQL\OLAP\Data”