.NET Framework Deployment Guide for Administrators
This step-by-step article describes how a system administrator can deploy the .NET Framework 4.5 and its system dependencies across a network by using System Center Configuration Manager (SCCM). This article assumes that all target client computers meet the minimum requirements for the .NET Framework.
The software referenced in this document, including, without limitation, the .NET Framework 4.5, Microsoft System Center Configuration Manager, and Active Directory, are each subject to license terms and conditions. These instructions assume that such license terms and conditions have been reviewed and accepted by the appropriate licensees of the software. These instructions do not waive any of the terms and conditions of such license agreements.
For information about support for the .NET Framework, see Microsoft .NET Framework Support Lifecycle Policy on the Microsoft Support website.
This topic contains the following sections:
Network administrators must verify that all client computers have the required system components before they install the .NET Framework.
For a list of the software and hardware requirements for installing the .NET Framework 4.5, see .NET Framework System Requirements.
Sets quiet mode. No user input is required, and no output is shown.
Prevents the Setup program from rebooting automatically. If you use this option, the chaining application has to capture the return code and handle rebooting (see Creating a Program with Setup and Installation Parameters).
Triggers the repair functionality.
Specifies the name of the package that is doing the chaining. This information is reported with other installation session information for those who have signed up for the Microsoft Customer Experience Improvement Program (CEIP). If the package name includes spaces, use double quotation marks as delimiters; for example: /chainingpackage "Chaining Product".
When you have the supporting infrastructure in place, you use System Center Configuration Manager 2007 to deploy the .NET Framework redistributable package on the network. This process involves creating and defining five primary areas: collections, packages, programs, distribution points, and advertisements.
Collections are groups of Configuration Manager 2007 resources, such as users, user groups, or computers, which the .NET Development software deployment targets. For more information about collections, see Collections Overview in the Microsoft TechNet Library.
Packages are sets of installation source files that Configuration Manager 2007 manages and distributes for software deployment. Packages include distribution points and programs. For more information about packages, see About Packages in the TechNet Library.
Programs are commands that are associated with packages. They contain command-line switches and additional parameters to be used with designated package source files such as Setup.exe. For more information about programs, see About Programs in the TechNet Library.
Distribution points are Configuration Manager 2007 site systems that store designated packages for deployment to clients. When the Configuration Manager 2007 client receives and processes a relevant advertisement, it contacts a distribution point to download the package and to start the installation process. For more information about distribution points, see About Distribution Points in the TechNet Library.
Advertisements associate packages and programs with collections. They enable administrators to target the deployment of specific or customized applications to collections of computers or users. For more information about advertisements, see About Advertisements in the TechNet Library.
This section provides a diagram and description of the test network environment for the Configuration Manager 2007 infrastructure. It also explains the steps for deploying the .NET Framework 4.5 by using Configuration Manager 2007.
The test network environment for this article is shown in the following illustration.
All the servers (A, B, and C) are running Windows Server 2008 SP2. The client computers (D) are running Windows 7. All servers and client computers are members of the same domain (CPANDL.COM). The applications and roles that each server is running, and the fully qualified domain name (FQDN) for each client computer are listed as follows:
Active Directory, DNS, DHCP <DC.CPANDL.COM>
Microsoft SQL Server 2008 <SQLSRV.CPANDL.COM>
System Center Configuration Manager 2007 R2 (management point, distribution point) <SCCM.CPANDL.COM>
Windows Vista Enterprise, System Center Configuration Manager 2007 client <WVC01.CPANDL.COM>
In this simple test network environment, the site server performs multiple site system roles (such as management point and distribution point) simultaneously. However, this configuration is not recommended for production sites that have large numbers of resources.
You can use Configuration Manager 2007 to deploy a silent installation of the .NET Framework 4.5, where the users do not interact with the installation process. In this test environment, follow these steps:
In this step, you select the computer resources and user groups to target for deployment. You use direct membership rules to create a collection in Configuration Manager 2007. For more information about membership rules, including queries and direct rules, see About Membership Rules in the TechNet Library.
To create a collection:
In the Configuration Manager Console, navigate to System Center Configuration Manager / Site Database / Computer Management.
Right-click Collections, and then click New Collection.
On the General page of the New Collection Wizard, enter a name for the collection. In this example, the collection is named Target-Computers.
On the Membership Rules page, click the computer icon to open the Create Direct Membership Rule Wizard. Click Next.
On the Search for Resources page, in the Resource class list, click System Resource. In the Attribute name list, click Name. In the Value field, enter %, and then click Next.
On the Collection Limiting page, click Browse, select All Windows Workstation or Professional Systems, click OK, and then click Next.
On the Select Resources page, select the check box for each of the targeted computer resources. In this example, TestComputer01 and TestComputer02 were selected. Click Next, and then on the Finished page, click Finish.
On the Membership Rules page of the New Collection Wizard, click Next.
On the Advertisements page, click Next. (For now, do not assign an advertisement because it is not yet created.)
On the Security page, accept the defaults, click Next, and then click Close.
For more information about collections, see Collections in Configuration Manager in the TechNet Library.
The package source folder contains all the files and subdirectories necessary to run the programs in a package. In this example, copy the .NET Framework 4.5 redistributable package to the source directory \\SCCM\DotNETFramework4.5.
For more information about package source directories, see How to Set Up a Package Source Directory in the TechNet Library.
The following steps create a package for the .NET Framework redistributable manually. The package will contain the specified parameters for installing the .NET Framework and the location from where the package will be distributed to the managed Configuration Manager 2007 clients.
To create a package:
In the Configuration Manager Console, navigate to System Center Configuration Manager / Site Database / Computer Management / Software Distribution.
Right-click Packages, point to New, and then click Package.
On the General page of the New Package Wizard, enter the following information, and then click Next:
Name: .NET Framework
Language. English (US)
On the Data Source page, select This package contains source files. Click the Set button, and then enter the path for the location of the source files in the Source directory field. For this example, select the source directory location of the local drive that contains a copy of the redistributable package; for example: C:\DotNETFramework4.5.
Click OK, and then continue to click Next and accept the default settings in the following pages: Data Access, Distribution Settings, Reporting, and Security.
On the Wizard Completed page, click Close.
These steps create a package named Microsoft .NET Framework 4.5 English (US).
The following steps create a program to deploy a silent installation of the .NET Framework 4.5. (In a silent installation, users do not interact with the installation process and the chaining application has to capture the return code and handle rebooting; see Getting Progress Information from an Installation Package in the MSDN Library.)
To create a program for the .NET Framework package:
In the Configuration Manager console, navigate to System Center Configuration Manager / Site Database / Computer Management / Software Distribution / Package / package name. In this example, the package name is Microsoft .NET Framework 4.5 English (US).
Right-click Programs, point to New, and then click Program.
On the General page of the New Program Wizard, enter the following information, and then click Next:
In the Name field, enter a name for the package (in this example, enter DotNETFramework4.5 silent installation).
In the Command line field, type:
dotNetFx45_Full_x86_x64.exe /q /norestart /ChainingPackage ADMINDEPLOYMENT
In the Run list, select Hidden.
In the After running field, verify that No action required is selected.
On the Requirements page, click Next to accept the defaults.
On the Environment page, in the Program can run list, select Whether or not a user is logged on. This will enable the Run with administrative rights option for the Run mode. Leave the default for Drive mode to Runs with UNC name, and then click Next.
On the Advanced page, select the Suppress program notifications check box, and then click Next.
On the Windows Installer page, click Next.
On the MOM page, click Next.
On the Summary page, click Next to confirm your changes.
On the Wizard Completed page, click Close.
To distribute packages to client computers from a server, you must first designate a site system as a distribution point. In this example, a single site server named SCCM was initially configured as both a management point and a distribution point.
To select a distribution point for the newly created package Microsoft .NET Framework 4.5 English (US):
Right-click Distribution Points.
Click New Distribution Points.
Click Next, and then click the check box for the distribution point (in this example, SCCM).
To exit from the New Distribution Points Wizard, click Close.
The package Microsoft .NET Framework 4.5 English (US) now contains both the Configuration Manager 2007 distribution point and program information for deploying a silent installation of the .NET Framework 4.5.
Before advertising the package, verify that it was installed on the distribution point. For information about how to verify the status of a package, see How to View the Status of a Package in the TechNet Library.
To create an advertisement for the .NET Framework 4.5 redistributable package:
Right-click Advertisements, point to New, and then click Advertisement.
On the General page of the New Advertisement Wizard, enter the following information, and then click Next:
In the Name field, enter .NET Framework 4.5.
In the Package field, click the Browse button, click the package that you want to advertise (in this example, Microsoft .NET Framework 4.5 English (US)), and then click OK.
In the Collection field, click the Browse button, click the collection name (in this example, Target-Computers), and then click OK.
On the Schedule page, in the Advertisement start time fields, enter the date and time when the advertisement will be available, and then click the asterisk button for Mandatory Assignments.
In the Assignment Schedule dialog box, click the Schedule button and enter the same date and time that you previously entered in the Advertisement start time fields. To return to the Schedule page, click OK.
On the Schedule page, select the check boxes for Enable Wake On LAN, Ignore maintenance windows when running program, and Allow system restart outside maintenance windows, and then click Next.
In your production environment, there might be policies in place that would require different selections for the assignment schedule. For information about these options, see Advertisement Name Properties: Schedule Tab in the TechNet Library.
Accept the default values on the Distribution Points, Interaction, Security, and Summary pages. Click Close on the Wizard Completed page.
The package will now be advertised to the targeted collection and the silent installation of .NET Framework 4.5 will begin.
For information about how to monitor the status of the advertisement, see How to View the Status of an Advertisement in the TechNet Library.
For information about .NET Framework 4.5 installation error codes, see the Return Codes section later in this topic.
For more information about the infrastructure for testing the deployment of the .NET Framework 4.5 redistributable package, see the following resources.
Active Directory, DNS, DHCP:
SQL Server 2008:
System Center Configuration Manager 2007 R2 (Management Point, Distribution Point):
Windows Vista Enterprise, System Center Configuration Manager client:
The following log files are generated during .NET Framework 4.5 setup:
%temp%\Microsoft .NET Framework 4.5*.txt
%temp%\Microsoft .NET Framework 4.5*.html
You can use the log collection tool to collect the .NET Framework 4.5 log files and to create a compressed cabinet (.cab) file that reduces the size of the files.
The following table lists the most common return codes from the .NET Framework 4.5 redistributable installation program. The return codes are the same for all versions of the installer.
For links to detailed information, see the next section, "Download Error Codes".
Installation completed successfully.
The user canceled installation.
A fatal error occurred during installation.
A restart is required to complete the installation. This message indicates success.
A restart is required to complete the installation. This message indicates success.
The user's computer does not meet system requirements.