Monday, 8 October 2012

Unattained Installation of Team Foundation Server 2012


Here you go with the command to installed Team Foundation Server 2012 silently or Unattained.

Create bat file and name it’s as TFS2012.cmd file.  And paste the below code in TFS2012.cmd,
When you are done just double click the cmd for some time and you are done with the installation of tfs2012.
                @echo off
echo ========================================================
set application=Team Foundation Server 2012 x64
SET ERRORLEVEL=0
set sourceLocation="D:\Team Foundation Server 2012\Team Foundation Server 2012 x64\tfs_server.exe"
set logFileLocation="D:\Logs\Installations\TFS2012-X64.log"
echo Installing %application% ....
echo SourceLocation=%sourceLocation%
echo logLocation=%logFileLocation%

:check
IF EXIST %sourceLocation% goto run
echo sourceLocation doesnot exist
SET ERRORLEVEL=1
goto end

:run
echo running installation file.....
%sourceLocation% /q /i /norestart /l*v %logFileLocation%

:end
IF %ERRORLEVEL% == 0 (
                ECHO instalation done SUCCESSFULLY.
) ELSE (
                ECHO instalation FAILED. ERROR LEVEL %ERRORLEVEL%.
)
echo ========================================================
pause
exit

Thanks,
Md. Jawed

No comments: