Enterprise Deployment for Visual Studio 2008 using Active Directory

Administrative Deployment Readme

Sometimes you might face issue if the files needed for the Administrative Installation Point are not extracted correctly.

The Below steps can be followed if the files are not extracted correctly:

In order to create Visual Studio 2008 Admin Install Point and deploying it follow the steps given below:

1. Create a folder called VS2008 in C drive.

2. Copy the contents of the VS folder from the DVD to this folder.

3. Download the full package version of the .Net Framework 3.5 from the following link.

.Net Framework 3.5 Redistributable

4. The file must be saved in the root of WCU\dotNetFramework folder.

Copy the following script and save it as a .BAT file in the VS2008 folder. The .BAT file should not go into the WCU folder. The script will fail.

Script to copy and save as .BAT file:

== Script Begins

set WORKFOLDER=C:\deployment
set dotNetFX35build=%WORKFOLDER%\dotnetfx35.exe
echo Creating Admin Install points for NETFX3 %PROCESSOR_ARCHITECTURE%
REM Create folders where work will be done
md %WORKFOLDER%\ext
md %WORKFOLDER%\VisualStudio2008\dotNetFramework
md %WORKFOLDER%\logs
REM pushd %WORKFOLDER%

REM ------------ File Extraction Section ------------

REM ## 64 Pre Requisites ##

REM Extract files for 64bitPrereq IA64
call .\WCU\64bitPrereq\IA64\vs_bsln.exe /q /X:%WORKFOLDER%\ext\64bitPrereqIA64

REM Extract files for 64bitPrereq X64
call .\WCU\64bitPrereq\x64\vs_bsln.exe /q /X:%WORKFOLDER%\ext\64bitPrereqx64

REM ## ARM > Device Emulator ##

REM Extract the files for Device Emulator
call .\wcu\arm\vs_emulator.exe /q /x:%WORKFOLDER%\ext\vs_emulator86

REM Extract the files for Device Emulator
call .\wcu\arm\vs_emulator_x64_vista.exe /q /x:%WORKFOLDER%\ext\vs_emulator64

REM ## Crystal reports does not need extraction ##

REM ## Document Explorer ##

REM Extract the files for Document Explorer
call .\wcu\DExplore\DExplore.exe /q /x:%WORKFOLDER%\ext\dexplorer\

REM ## Dot Net framework 3.5 ##

REM << The files in the folder cannot
REM be used download the full pack from
REM the MS site and save it in this location. >>

REM Extract the files from the NETFX35 redist SFX
call .\WCU\dotNetFramework\dotnetfx35.exe /q /x:%WORKFOLDER%\ext

REM ## Windows installer 3.1 has to installed separately by the user. ##

REM ## .NET Compact Framework and .Net Compact Framework v3.5 does not need extraction ##

REM ## Profiler ##

REM Extract files for Microsoft Visual Studio 2008 Performance Collection Tools X86
call .\wcu\Profiler\PerfCollectionTools_x86.exe /q /x:%WORKFOLDER%\ext\vs_profiler86

REM Extract files for Microsoft Visual Studio 2008 Performance Collection Tools X64
call .\wcu\Profiler\PerfCollectionTools_x64.exe /q /x:%WORKFOLDER%\ext\vs_profiler64

REM ## SQL is not extracted or installed by this script ##

REM ## VS Tools for Office ##

REM Extract the files for Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System Runtime
call ".\wcu\VS Tools for Office\vstor.exe" /q /x:%WORKFOLDER%\ext\vstor\

REM Extract the files for Microsoft Visual Studio Tools for the Microsoft Office system (version 3.0 Runtime)
call ".\wcu\VS Tools for Office\vstor30.exe" /q /x:%WORKFOLDER%\ext\vstor30\

REM ## WebDesignerCore ##

REM Extract files for Microsoft Web Designer Tools
call .\WCU\WebDesignerCore\WebDesignerCore.EXE /q /x:%WORKFOLDER%\VisualStudio2008\WDCore

REM ## WindowsMobileSDK does not need extraction ##

REM ## WinSDK ##

REM Extract files for Microsoft Windows SDK for Visual Studio 2008 Headers and Libraries
call .\WCU\WinSDK\WinSDK_Build.exe /Q /x:%WORKFOLDER%\ext\WinSDK_Build

REM Extract files for Microsoft Windows SDK for Visual Studio 2008 .NET Framework Tools
call .\WCU\WinSDK\WinSDK_NetFxTools.exe /Q /x:%WORKFOLDER%\ext\WinSDK_NetFxTools

REM Extract files for Microsoft Windows SDK for Visual Studio 2008 SDK Reference Assemblies and IntelliSense
call .\WCU\WinSDK\WinSDK_RefInt.exe /Q /x:%WORKFOLDER%\ext\WinSDK_RefInt

REM Extract files for Microsoft Windows SDK for Visual Studio 2008 Tools
call .\WCU\WinSDK\WinSDK_Tools.exe /Q /x:%WORKFOLDER%\ext\WinSDK_Tools

REM Extract files for Microsoft Windows SDK for Visual Studio 2008 Win32 Tools
call .\WCU\WinSDK\WinSDK_W32Tools.exe /Q /x:%WORKFOLDER%\ext\WinSDK_W32Tools

REM      ## END of extraction ##
REM
REM
REM
REM ------------ MSI File Extraction Admin Install Point ------------
REM
REM
REM ------------ MSI File Extraction Admin Install Point ------------
REM
REM
REM ------------ MSI File Extraction Admin Install Point ------------
REM
REM

REM ## 64 Pre Requisites ##

REM Admin point for 64bitPrereq IA64
call msiexec /qb /a %WORKFOLDER%\ext\64bitPrereqIA64\vs_bsln.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\64bitPrereqIA64

REM Admin point for 64bitPrereq X64
call msiexec /qb /a %WORKFOLDER%\ext\64bitPrereqx64\vs_bsln.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\64bitPrereqx64

REM ## ARM > Device Emulator ##

REM Admin point for Device Emulator x86
call msiexec /qb /a %WORKFOLDER%\ext\vs_emulator86\sde_vsd.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\vs_emulator86

REM Admin Pont for Device Emulator x64
call msiexec /qb /a %WORKFOLDER%\ext\vs_emulator64\sde_vsd64.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\vs_emulator64

REM ## Crystal reports ##

REM Admin point for Crystal Reports 2007
call msiexec /qb /a "WCU\Crystal Reports\CrystalReports2007.msi" TARGETDIR=%WORKFOLDER%\VisualStudio2008\Crystal_Reports

REM Admin Pont for Crystal Reports 2007 X64
call msiexec /qb /a "WCU\Crystal Reports\CRRedist2007_x64.msi" TARGETDIR=%WORKFOLDER%\VisualStudio2008\Crystal_Reports

REM ## Document Explorer ##

REM Admin Point for Document Explorer
call msiexec /qb /a %WORKFOLDER%\ext\dexplorer\hh_dex.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\dexplorer

REM ## Dotnet framework 3.5 ##

REM create the MSXML6 x86 admin install point
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\MSXML6_x86
call msiexec /a %WORKFOLDER%\ext\wcu\dotNetFramework\dotNetFX30\x86\msxml6.msi /qb /l*v %WORKFOLDER%\logs\MSXML6_x86.log Targetdir=%WORKFOLDER%\VisualStudio2008\dotNetFramework\MSXML6_x86

REM create the MSXML6 x64 admin install point
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\MSXML6_x64
call msiexec /a %WORKFOLDER%\ext\wcu\dotNetFramework\dotNetFX30\x64\msxml6.msi /qb /l*v %WORKFOLDER%\logs\MSXML6_x64.log Targetdir=%WORKFOLDER%\VisualStudio2008\dotNetFramework\MSXML6_x64

REM ------------------------------------------------------------
REM create the RGBRAST x86 admin install point
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\RGBRAST_x86
call msiexec /a %WORKFOLDER%\ext\wcu\dotNetFramework\dotNetFX30\RGB9RAST_x86.msi /qb /l*v %WORKFOLDER%\logs\RGBRAST_x86.log REBOOT=ReallySuppress Targetdir=%WORKFOLDER%\VisualStudio2008\dotNetFramework\RGBRAST_x86

REM create the RGBRAST x64 admin install point
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\RGBRAST_x64
call msiexec /a %WORKFOLDER%\ext\wcu\dotNetFramework\dotNetFX30\RGB9RAST_x64.msi /qb /l*v %WORKFOLDER%\logs\RGBRAST_x64.log REBOOT=ReallySuppress Targetdir=%WORKFOLDER%\VisualStudio2008\dotNetFramework\RGBRAST_x64
REM ------------------------------------------------------------
REM Extract NETFX 35 x86 components
md %WORKFOLDER%\ext\netfx35_x86
call %WORKFOLDER%\ext\wcu\dotNetFramework\dotNetFX35\x86\netfx35_x86.exe /q /x: %WORKFOLDER%\ext\netfx35_x86

REM Extract NETFX 35 x64 components
md %WORKFOLDER%\ext\netfx35_x64
call %WORKFOLDER%\ext\wcu\dotNetFramework\dotNetFX35\x64\netfx35_x64.exe /q /x: %WORKFOLDER%\ext\netfx35_x64

REM ------------------------------------------------------------
REM create the NETFX35 x86 admin install point
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\netfx35_x86
call msiexec /qb /a %WORKFOLDER%\ext\netfx35_x86\vs_setup.msi USING_EXUIH=1 REBOOT=ReallySuppress /l*v %WORKFOLDER%\logs\netfx35_x86.log TARGETDIR=%WORKFOLDER%\VisualStudio2008\dotNetFramework\netfx35_x86
REM create the NETFX35 x64 admin install point
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\netfx35_x64
call msiexec /qb /a %WORKFOLDER%\ext\netfx35_x64\vs_setup.msi USING_EXUIH=1 REBOOT=ReallySuppress /l*v %WORKFOLDER%\logs\netfx35_x64.log TARGETDIR=%WORKFOLDER%\VisualStudio2008\dotNetFramework\netfx35_x64

REM ------------------------------------------------------------
REM create the NETFX20 x86 SP1 admin install point

REM 2.0 SP1 files location
Set fx20=%WORKFOLDER%\ext\wcu\dotNetFramework\dotNetFX20\
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX20_x86
call msiexec /a %fx20%netfx20a_x86.msi USING_EXUIH=1 REBOOT=ReallySuppress /l*v %WORKFOLDER%\logs\netfx20_x86.log TARGETDIR=%WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX20_x86

call msiexec /p %fx20%ASPNET.msp;%fx20%CLR.msp;%fx20%CRT.msp;%fx20%NetFX_CA.msp;%fx20%NetFX_Core.msp;%fx20%NetFX_Other.msp;%fx20%PreXP.msp;%fx20%WinForms.msp;%fx20%DW.msp /a %WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX20_x86\netfx20a_X86.msi /qb /l*v %WORKFOLDER%\logs\netfx20_x86_patch.log

REM create the NETFX20 x64 SP1 admin install point
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX20_x64
call msiexec /a %fx20%Netfx20a_x64.msi USING_EXUIH=1 REBOOT=ReallySuppress /l*v %WORKFOLDER%\logs\netfx20_x64.log TARGETDIR=%WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX20_x64

call msiexec /p %fx20%ASPNET_64.msp;%fx20%CLR_64.msp;%fx20%CRT_64.msp;%fx20%DW_64.msp;%fx20%NetFX_Core_64.msp;%fx20%NetFX_Other_64.msp;%fx20%WinForms_64.msp;%fx20%ASPNET.msp;%fx20%CLR.msp;%fx20%CRT.msp;%fx20%NetFX_CA.msp;%fx20%NetFX_Core.msp;%fx20%NetFX_Other.msp;%fx20%PreXP.msp;%fx20%WinForms.msp;%fx20%DW.msp /a %WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX20_x64\Netfx20a_X64.msi /qb /l*v %WORKFOLDER%\logs\netfx20_x64_patch.log

REM ------------------------------------------------------------
REM create the NETFX30 SP1 x86 admin install point

REM 3.0 SP1 files location
Set fx30=%WORKFOLDER%\ext\wcu\dotNetFramework\dotNetFX30\
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX30_x86
call msiexec /a %fx30%netfx30a_x86.msi USING_EXUIH=1 REBOOT=ReallySuppress /l*v %WORKFOLDER%\logs\netfx30_x86.log TARGETDIR=%WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX30_x86

call msiexec /p %fx30%WCF.msp;%fx30%WCS.msp;%fx30%WF.msp;%fx30%WPF1.msp;%fx30%WPF2.msp;%fx30%WPF_Other.msp;%fx30%XPS.msp;%fx30%WF_32.msp;%fx30%WPF2_32.msp;%fx30%WPF_Other_32.msp /a %WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX30_x86\netfx30a_X86.msi /qb /l*v %WORKFOLDER%\logs\netfx30_x86_patch.log

REM create the NETFX30 SP1 x64 admin install point
md %WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX30_x64
call msiexec /a %fx30%netfx30a_x64.msi USING_EXUIH=1 REBOOT=ReallySuppress /l*v %WORKFOLDER%\logs\netfx30_x64.log TARGETDIR=%WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX30_x64

call msiexec /p %fx30%WCF.msp;%fx30%WCS.msp;%fx30%WF.msp;%fx30%WPF1.msp;%fx30%WPF2.msp;%fx30%WPF_Other.msp;%fx30%XPS.msp;%fx30%WCF_64.msp;%fx30%WCS_64.msp;%fx30%WF_64.msp;%fx30%WPF1_64.msp;%fx30%WPF2_64.msp;%fx30%WPF_Other_64.msp /a %WORKFOLDER%\VisualStudio2008\dotNetFramework\NETFX30_x64\netfx30a_X64.msi /qb /l*v %WORKFOLDER%\logs\netfx30_x64_patch.log

REM ## Dotnet compact framework ##

REM Admin Point for .net compact framework 2.0
call msiexec /qb /a "WCU\NetCF\NetCFSetupv2.msi" TARGETDIR=%WORKFOLDER%\VisualStudio2008\NetCFSetupv2

REM Admin Point for .net compact framework 3.5
call msiexec /qb /a "WCU\NetCF\NetCFSetupv35.msi" TARGETDIR=%WORKFOLDER%\VisualStudio2008\NetCFSetupv35

REM ## Profiler ##

REM Admin Point for Microsoft Visual Studio 2008 Performance Collection Tools X86
call msiexec /qb /a %WORKFOLDER%\ext\vs_profiler86\dynamicanalysis_collectionbits.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\vs_profiler86

REM Admin Point for Microsoft Visual Studio 2008 Performance Collection Tools X64
call msiexec /qb /a %WORKFOLDER%\ext\vs_profiler64\dynamicanalysis_collectionbits.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\vs_profiler64

REM ## VS Tools for Office ##

REM Extract the files for Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System Runtime
call msiexec /qb /a %WORKFOLDER%\ext\vstor\vsto.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\vsto

REM Extract the files for Microsoft Visual Studio Tools for the Microsoft Office system (version 3.0 Runtime)
call msiexec /qb /a %WORKFOLDER%\ext\vstor30\trin_trir.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\vsto30

REM ## WebDesignerCore ##

REM Admin point for Microsoft Web Designer Tools
REM Special instruction to do this in the document.

REM ## WindowsMobileSDK ##

REM Admin point for WindowsMobileSDK
call msiexec /qb /a "WCU\WindowsMobileSDK\MagOrcasPPC.msi" TARGETDIR=%WORKFOLDER%\VisualStudio2008\WindowsMobileSDK
call msiexec /qb /a "WCU\WindowsMobileSDK\MagOrcasSP.msi" TARGETDIR=%WORKFOLDER%\VisualStudio2008\WindowsMobileSDK

REM ## WinSDK ##

REM Admin Point for Microsoft Windows SDK for Visual Studio 2008 Headers and Libraries
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_Build\VistaClientHeadersLibs-x86.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_Build86
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_Build\VistaClientHeadersLibs-x64.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_Build64

REM Admin Point for Microsoft Windows SDK for Visual Studio 2008 .NET Framework Tools
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_NetFxTools\WinSDK_nfxtoolsm_x86.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_NetFxTools86
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_NetFxTools\WinSDK_nfxtoolsm_amd64.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_NetFxTools64

REM Admin Point for Microsoft Windows SDK for Visual Studio 2008 SDK Reference Assemblies and IntelliSense
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_RefInt\winsdkintellisenserefassys-x86.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_RefInt86
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_RefInt\winsdkintellisenserefassys-amd64.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_RefInt64

REM Admin Point for Microsoft Windows SDK for Visual Studio 2008 Tools
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_Tools\VistaClientSDKTools-x86.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_Tools86
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_Tools\VistaClientSDKTools-x64.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_Tools64

REM Admin Point for Microsoft Windows SDK for Visual Studio 2008 Win32 Tools
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_W32Tools\VistaClientWin32Tools-x86.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_W32Tools86
call msiexec /qb /a %WORKFOLDER%\ext\WinSDK_W32Tools\VistaClientWin32Tools-x64.msi TARGETDIR=%WORKFOLDER%\VisualStudio2008\WinSDK_W32Tools64

== End Of Script

Note: The Script takes 10 to 15 minutes to extract all the components and create the admin points

Follow the next steps to create the admin point for Visual Studio 2008.

1. Click on Start>run type CMD, hit ok.

2. Change directory to VS2008 and run the following commands.

setup\setup.exe /CreateTransform C:\deployment\VisualStudio2008\VSMain\vs_transform.mst

3. Follow the on screen steps to create the transform.

4. To run the next command we need the product key. The key is in the setup\setup.sdb file.

NOTE: Retail media product key can only be located at jewel case or DVD cover.

5. Open the file with Notepad and search for "Product Key"

6. In the command window type the following command to apply the transform.

msiexec /a vs_setup.msi TRANSFORMS=C:\deployment\VisualStudio2008\VSMain\vs_transform.mst PIDKEY=<KEY> TARGETDIR=C:\deployment\VisualStudio2008\VSMain\

The process of creating the admin installation point is over now. Follow the steps below to Deploy it in AD.

Add a setup package to an Active Directory Group Policy

1. From the Start menu, choose Programs and then choose Administrative Tools.
2. Choose Component Services and then expand Active Directory Users and Computers. The Active Directory Users and Computers tree is displayed.
3. Right-click the Domain node and then choose Properties.
4. In the Properties dialog box, choose the Group Policy tab and then click Edit.
5. If you intend to set policies that apply to computers regardless of who logs on to them, expand Computer Configuration\Software Settings.

Note: Ensure that you map to the shared location on the Active Directory server; otherwise, it will not let you create a package for installation.

6. Right-click Software installation, choose New and then choose Package.
7. In the Open dialog box, browse to the location where you copied the deployment folder, and select the .msi file.
8. In the Deploy Software dialog box, choose Assigned and then click OK. (See the different Step for vs_setup.msi below)
9. Choose Auto Install to install the software automatically on every computer in the domain.
10. Click OK and then exit the Active Directory Users and Computers console.

Steps which needs to be followed for vs_setup.msi:

1. Select the .msi as described, click OK.

2. On Deploy software dialog choose Advanced, click OK.

3. On the next tabbed dialog select the Modifications tab.

4. Click on Add.. button and select the vs_transform.mst transform file that was created before.

Click ok to close the dialog box.

It should be ready for deployment now. Only thing just restart the client machines in order to complete the installation.