Script to installed Visual Studio 2008 SDK in Silent mode

Here is the script to installed Visual Studio 2008 SDK in Silent Mode:

@echo off

echo ========================================================

set application=Visual Studio 2008 SDK v 1.1

SET ERRORLEVEL=0

set sourceLocation=”D:\Applications\Visual Studio 2008 SDK v 1.1\VsSDK_sfx1_1.exe”

set logFileLocation= “D:\Logs\Installations\Visual Studio 2008 SDK v 1.1.log”

echo Installing %application% ….

echo SourceLocation=%sourceLocation%

echo logLocation=%logFileLocation%

set dest=”D:\Logs\VsSDK_sfx1_1.exe”

set destfolder=”D:\Logs\”

set destMsi=”D:\Logs\vssdk.msi”
:check

IF EXIST %sourceLocation% goto run

echo sourceLocation doesnot exist

goto end

:run
echo copying the exe file to local drive

copy %sourceLocation% %dest%

echo extrating the file

%dest% /x:%destfolder% /q
echo running the setup file now

msiexec /q /i %destMsi% /l*v %logFileLocation%

:end

IF %ERRORLEVEL% == 0 (

ECHO instalation done SUCCESSFULLY.

) ELSE (

ECHO instalation FAILED. ERROR LEVEL %ERRORLEVEL%.

)

echo ========================================================

pause

 exit     ============= Thanks, Md. Jawed

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s