How to deploy Visual Studio 2012 with Configuration Manager 2007 or 2012

**  To deploy this application using the ‘Application’ method as used by Configuration Manager 2012, please see my Step-by-Step How-to in this blog post **

I recently had to deploy Visual Studio 2012 Professional version to a few computers at my work place.  The only instruction that I could find on how to achieve this easily was on Microsoft’s MSDN site.  It appeared to contain step-by-step instructions on how to achieve exactly what I was after.  The title of the article on MSDN was:

How to: Deploy Visual Studio Using Microsoft System Configuration Manager (SCCM)

And the instructions were indeed step-by-step.  I thought to myself that today was going to be a very straightforward day indeed until I read the article and realised that it was riddled with errors and assumed knowledge.  If you follow the article then your installation will fail.  Here is the link to the very poorly proof-read article: http://msdn.microsoft.com/en-us/library/ee225239.aspx  I have replied to their article so maybe by the time you read it it may have been corrected.

Also I was rather surprised in reading the article that it was geared towards using SCCM 2007 and not 2012. <sigh>

Anyway, here’s how I did it using the packages method… (To do this using the Application model see my post here.)

Synopsis:

– To create a silent installation.

– We will be creating one package that contains two programs:

Program 1: .Net 4.5 framework
Program 2. Visual Studio 2012 installation

You will then deploy Program 2 to your collections which will run program 1 first.  Following the completion of program 1, the computer will then restart and program 2 will commence installation.

 

Step 1.  Create package source directory and package:

  1. Copy the contents of your installation media somewhere on your Config Manager Server (Your package source directory)
  2. In the Config Manager 2012 console, click the ‘Software Library’ node at the bottom left of the console.
  3. Right-click ‘Packages’ under the Application Management folder and select ‘Create Package’
  4. Give the package a name eg Visual Studio 2012 Professional and tick ‘This package contains source files’ then browse to and select the root folder that contains your installation files (As per step 1 above)
  5. Fill in the rest of the wizard to meet your organisational requirements but do not choose to create a program at this stage – we will do this manually next.

Step 2.  Create Program 1: .Net 4.5 installation

Right-Click the Package you just created and select ‘Create Program’ from the menu as per the screenshot below:

Name your program and give it the following Command line:

packages\dotNetFramework\dotNetFx45_Full_x86_x64.exe  /q /ChainingPackage AdminDeployment.xml

NOTE: the location of your dotNetFx45_Full_x86_x64.exe may be in a different location to mine. Use the browse facility to find the .exe in your package source directory and then append the parameters to it if it’s easier for you.

The ‘General’  and Environment tabs of your Program should look like this:
  

To suppress program notifications to the end-user (as this is a silent installation) on the ‘Advanced’ tab I also ensure that there is a tick in ‘Supress program notifications’ :

Step 3.  Create Program 2: Visual Studio 2012 Installation

Create another package by right-clicking the program and selecting ‘Create Program’ from the menu as per the screenshot below:

Name your program; I called mine, ‘Visual Studio 2012 silent installation’

On the General Tab, add the following to the Command line:

vs_professional.exe /AdminFile AdminDeployment.xml /quiet /norestart

(Note: your executable file may be named something different from vs_professional.exe depending on the version you are trying to deploy.  Again, if you are not sure, browse to the file which should be in the root folder of your source directory on your Config Mgr server and then append the other parameters to the command line)

Ensure that your Environment tab looks like this:

On the Advanced tab, we are going to ensure that ‘Run another program first’ is selected and then browse to our .NET 4.5 program we created earlier.  As this is a silent install, I’m also going to supress program notifications by ticking the ‘Supress program notifications’ check-box:

 

Step 4.  Edit AdminDeployment.xml file

Nearly done now.  We now need to edit the AdminDeployment.xml file in order to prevent it from downloading components from the web.  I took the following information from here: http://msdn.microsoft.com/en-us/library/ee225237.aspx

Find AdminDeployment.xml file which should be in the root of your installation source directory on your Config Manger server and change the value of the NoWeb attribute of the BundleCustomizations element from “default” to “yes” as the following example shows:

  1. Change <BundleCustomizations TargetDir=”default” NoWeb=”default”/> to <BundleCustomizations TargetDir=”default” NoWeb=”yes”/>

Step 5.  Distribute the content to your distribution point.

Right-click your Package and select Distribute Content.  Follow the wizard to distribute the content to your distribution point:

 

The end result in configuration manager 2012 will now look something like this:

 

Step 6.  Deploy to your collection:

Right-click program 2 (Visual Studio 2012 silent installation) and select deploy.  Follow the wizard in order to deploy it to your device collection as you see fit.  The deployment will install .net framework first, restart and then install Visual studio.  If you have followed my guide then your users will not need to be logged in in order for this to occur.

 

I hope this guide has helped you out.

 

 


 

 

 

 

 

9 Comments

  1. Thanks for the detailed instructions. Have you had any success applying VS Update 1 or VS Update 2 through SCCM? I’m getting hung up on how to accurately detect whether a client had the Update or not. Any ideas?

  2. Hello
    I have followed similar steps to deploy visual studio 2012 and update 2, however when i open visual studio, it prompts “Do you want to download and install product documentation?”
    This is to be deployed into a managed environment so the user would not be able to install this anyway.
    is there a way to set it to web only documentation or include the documentation with the installation?

    Thanks

  3. Hi,

    I used the steps above and deployed my package. Monitoring it states the the deployment was successful but when I look at the client, nothing was installed.

    Any ideas?

    SCCM 2012R2 with VS Pro 2013.3

Leave a Reply