Unattained Installation of Team Visual Studio 2012

Before we start our Silent Installation of Visual Studio 2012. We have to take care of few as mention below:
1.       IF SOURCE FOLDER CONTAINS SPACE(S) ANYWHERE IN THE ENTIRE PATH, INSTALLATION WILL FAIL.
2.       Create a copy of AdminDeployment.xml (to serve as backup in case any unwanted changes occur in original file)
3.        Change value of attribute NoWeb=”default” to NoWeb=”yes” in AdminDeployment.xml. See the highlighted section.
ORIGINAL:
<admindeploymentcustomizations dmindeployment="dmindeployment" http:="http:" schemas.microsoft.com="schemas.microsoft.com" wix="wix" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment

“>

   NoWeb=”default”/>
  
CHANGED:
<admindeploymentcustomizations dmindeployment="dmindeployment" http:="http:" schemas.microsoft.com="schemas.microsoft.com" wix="wix" xmlns="http://schemas.microsoft.com/wix/2011/AdminDeployment

“>

   NoWeb=”yes”/>
  
3. Copy CHANGED AdminDeployment.xml into packages sub-folder of SOURCE FOLDER.
Now the below Script will do the magic to installed VS2012 in Silent, Unattained mode.
@echo off
echo ========================================================
set application=Visual Studio 2012 Premium
SET ERRORLEVEL=0
SET sourceLocation=D:\VS2012Premium\
SET setupFile=%sourceLocation%vs_premium.exe
SET adminFile=%sourceLocation%AdminDeployment.xml
SET logFileLocation=”D:\Logs\Installations\vs2012_premium.log”
echo Installing %application% ….
echo SourceLocation=%sourceLocation%
echo setupFile=%setupFile%
echo adminFile=%adminFile%
echo logLocation=%logFileLocation%
:check
IF EXIST “%setupFile%” goto run
echo sourceLocation doesnot exist
SET ERRORLEVEL=1
goto end
:run
echo running installation file…..
“%setupFile%” /adminfile “%adminFile%” /quiet /norestart
:end
IF %ERRORLEVEL% == 0 (
                ECHO instalation done SUCCESSFULLY.
) ELSE (
                ECHO instalation FAILED. ERROR LEVEL %ERRORLEVEL%.
)
echo ========================================================
pause
exit
~jawed

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