
Deploying the Microsoft .NET Framework 3.5 Using Active Directory
The following deployment steps apply to Windows XP (SP2), Windows Server 2003, Windows Vista, and Windows Server 2008.
Prerequisites for Deploying the .NET Framework 3.5
Network administrators must verify that all client computers have the system components required for installing the .NET Framework 3.5. Installation will fail if the prerequisites are not met.
Note: |
|---|
You must deploy the required components in the order that they are listed. The component installation setup will fail if they are deployed in a different order. For example, the .NET Framework 2.0 Service Pack 1 requires that you install Windows Installer 3.1 first; therefore, Windows Installer is listed before the .NET Framework 2.0 Service Pack 1. The components without an asterisk (*) are located in the WCU folder of the NET Framework 3.5 setup package. For information about how to deploy these components, see
How to: Deploy the .NET Framework by Using Active Directory.
|
The following are the prerequisites for deploying the .NET Framework 3.5 on Windows Server 2003:
Microsoft Windows Server 2003 Service Pack 1
Microsoft .NET Framework 2.0 Service Pack 1
Microsoft .NET Framework 3.0 Service Pack 1
Microsoft Core XML Services (MSXML) 6.0. To download this component, go to the Microsoft Core XML Services (MSXML) 6.0 page on the Microsoft Download Center Web site.
Windows Imaging Component
XML Paper Specification Shared Components Pack 1.0
Software rasterizer for the Microsoft DirectX 9.0 Software Development Kit (SDK)
The following are the prerequisites for deploying the .NET Framework 3.5 on Windows XP:
Microsoft Windows XP Service Pack 2
Microsoft Internet Explorer 6.0 Service Pack 1
Microsoft Windows Installer 3.1
Microsoft .NET Framework 2.0 Service Pack 1
Microsoft .NET Framework 3.0 Service Pack 1
Windows Imaging Component
XML Paper Specification Shared Components Pack 1.0
Software rasterizer for the Microsoft DirectX 9.0 Software Development Kit (SDK)
The following are the prerequisites for deploying the .NET Framework 3.5 on Windows Vista. Obtain these updates through Windows Update before deploying the .NET Framework 3.5.
There are no prerequisites for deploying on Windows Server 2008 or Vista Service Pack 1. The Microsoft .NET Framework 2.0 and 3.0 Cumulative Updates 1 are included in Windows Server 2008 and Vista Service Pack 1.
The above components are subject to their own license agreements.
Deploying a Component Using Active Directory
This section describes how to use Active Directory to deploy the Windows Installer setup package for a specific component across a network. To deploy components that require file extraction, you must have administrator privileges on the target computers.
Before you can deploy applications using Active Directory, you must extract individual files from the .exe redistributable package. The Windows Installer file must be extracted from the .exe file. You might need to extract additional files as well. For example, to deploy the .NET Framework 3.5 component, the vs_setup.msi file must be extracted from the .exe file to be used for deployment.
Before you deploy the .NET Framework, make sure that target computers meet the minimum configuration requirements. For details, see the Deploying & Configuring Applications page on the Microsoft .NET Framework Developer Center.
The Windows Imaging Component and the XML Paper Specification Shared Components Pack 1.0 use the Package Installer (formerly Update.exe). Update.msi is not provided for these two components. Microsoft recommends that you use the command-line option to deploy these Windows components.
The following tables show the list of components that can be deployed using Active Directory.
Table 1 Components that can be deployed using Active Directory (x86)
Component
|
OS
|
.exe or .msi file location
|
Directory
|
Component command
|
File extraction required
|
|---|
Microsoft Core XML Services (MSXML) 6.0
|
XP, W2K3
|
wcu\dotNetFramework\dotNetFX30\x86\msxml6.msi
|
msxml6
|
msiexec /qb /a msxml6.msi TARGETDIR=c:\msxml6
| |
Software Rasterizer for the Microsoft DirectX 9.0 Software Development Kit (SDK)
|
XP, W2K3
|
wcu\dotNetFramework\dotNetFX30\RGB9RAST_x86.msi
|
rgbrast
|
msiexec /qb /a RGB9RAST_x86.msi REBOOT=ReallySuppress TARGETDIR=c:\RGBRAST
| |
.NET Framework 2.0 SP1
|
XP, W2K3
|
wcu\dotNetFramework\dotNetFX20
the appropriate MSI and MSP
|
dotNetFX20
|
msiexec /a netfx20a_x86.msi /update ASPNET.msp;CLR.msp;CRT.msp;NetFX_CA.msp;NetFX_Core.msp;NetFX_Other.msp;PreXP.msp;WinForms.msp;DW.msp USING_EXUIH=1 REBOOT=ReallySuppress TARGETDIR=c:\dotNetFX20
| |
.NET Framework 3.0 SP1
|
XP, W2K3
|
wcu\dotNetFramework\dotNetFX30
the appropriate MSI and MSP
|
dotNetFX30
|
msiexec /a netfx30a_x86.msi /update WCF.msp;WCS.msp;WF.msp;WPF1.msp;WPF2.msp;WPF_Other.msp;XPS.msp;WF_32.msp;WPF2_32.msp;WPF_Other_32.msp USING_EXUIH=1 REBOOT=ReallySuppress /l* %WORKFOLDER%\logs\netfx30_x86.log TARGETDIR=%WORKFOLDER%\AIP\NETFX30
| |
.NET Framework 3.5
|
XP, W2K, Vista, W2K8
|
wcu\dotNetFramework\dotNetFX35\x86\netfx35_x86.exe
|
dotNetFX35
|
msiexec /qb /a vs_setup.msi USING_EXUIH=1 REBOOT=reallySuppress TARGETDIR=c:\dotNetFX35
| |
Table 2 Components that can be deployed using Active Directory (x64)
Component
|
OS
|
.exe or .msi file location
|
Directory
|
Component command
| |
|---|
Microsoft Core XML Services (MSXML) 6.0
|
XP, W2K3
|
wcu\dotNetFramework\dotNetFX30\x64\msxml6.msi
|
msxml6
|
msiexec /qb /a msxml6.msi TARGETDIR=c:\msxml6
|
No
|
Software Rasterizer for the Microsoft DirectX 9.0 Software Development Kit (SDK)
|
XP, W2K3
|
wcu\dotNetFramework\dotNetFX30\RGB9RAST_x64.msi
|
rgbrast
|
msiexec /qb /a RGB9RAST_x64.msi REBOOT=ReallySuppress TARGETDIR=c:\RGBRAST
|
No
|
.NET Framework 2.0 SP1
|
XP, W2K3
|
wcu\dotNetFramework\dotNetFX20
the appropriate MSI and MSP
|
dotNetFX20
|
msiexec /a Netfx20a_x64.msi /update ASPNET_64.msp;CLR_64.msp;CRT_64.msp;DW_64.msp;NetFX_Core_64.msp;NetFX_Other_64.msp;WinForms_64.msp;ASPNET.msp;CLR.msp;CRT.msp;NetFX_CA.msp;NetFX_Core.msp;NetFX_Other.msp;PreXP.msp;WinForms.msp;DW.msp USING_EXUIH=1 REBOOT=ReallySuppress TARGETDIR=c:\dotNetFX20
|
No
|
.NET Framework 3.0 SP1
|
XP, W2K3
|
wcu\dotNetFramework\dotNetFX30
the appropriate MSI and MSP
|
dotNetFX30
|
msiexec /a netfx30a_x64.msi /update WCF.msp;WCS.msp;WF.msp;WPF1.msp;WPF2.msp;WPF_Other.msp;XPS.msp;WCF_64.msp;WCS_64.msp;WF_64.msp;WPF1_64.msp;WPF2_64.msp;WPF_Other_64.msp USING_EXUIH=1 REBOOT=ReallySuppress TARGETDIR=c:\dotNetFX30
|
No
|
.NET Framework 3.5
|
XP, W2K, Vista, W2K8
|
wcu\dotNetFramework\dotNetFX35\x86\netfx35_x64.exe
|
dotNetFX35
|
msiexec /qb /a vs_setup.msi USING_EXUIH=1 REBOOT=reallySuppress TARGETDIR=c:\dotNetFX35
|
Yes
|
You can enable logging for each component by adding /l*v logfile to the msiexec command. For example, to include a log file for the .NET Framework 3.5 component deployment, use the following command:
msiexec /qb /l*v netfx35_x86.log /a vs_setup.msi USING_EXUIH=1 REBOOT=reallySuppress TARGETDIR=c:\dotNetFX35
Step 1: Create the Administrator Install Point
Note: |
|---|
To see a sample script that shows how to create the install point, see the Appendix of this document.
|
Create a folder to hold the redistributable package.
Download the .NET Framework 3.5 redistributable package from the Microsoft Download Center Web site and save it in the folder that you created in step 1.
Extract files from the .NET Framework 3.5 redistributable .exe file to find the component files listed below. To extract files, run the following command:
dotnetfx35.exe /x:<ExtractionDestination>
For example:
dotnetfx35.exe /x:C:\NETFX35
Copy the component's .exe file or .msi file to the root directory of the C:\ drive on your local computer. (For the location of components, see Table 1.)
In the Windows Start menu, click Run and then type cmd to open a Command window.
Change the directory to the root directory of the C: drive.
Type the following command to create a directory in which to copy the .exe file:
Type the corresponding component command (see Table 1) to create the install point in the directory.
Close the Command window.
Open Windows Explorer and navigate to C:\directoryName to verify that the files were extracted.
Move the folder and all its contents to the network share that you intend to use for deployment.
Step 2: Add a Setup Package to an Active Directory Group Policy
In the Windows Start menu, click All Programs, click Administrative Tools, and then click Component Services.
Expand Active Directory Users and Computers.
The Active Directory Users and Computers tree is displayed.
Right-click the domain node and then click Properties.
In the Properties dialog box, click the Group Policy tab.
In the Group Policy Objects Links dialog box, click the Group Policy tab.
If you intend to set policies that apply to computers regardless of who logs on to them, expand Computer Configuration\Software Settings.
Note: |
|---|
Make sure that you map to the shared location on the Active Directory server. Otherwise, it will not let you create a package for installation.
|
Right-click Software installation, click New, and then click Package.
In the Open dialog box, browse to the location where you copied the deployment folder and then select the .msi file.
In the Deploy Software dialog box, click Assigned and then click OK.
Click Auto Install to install the software automatically on every computer in the domain.
Click OK and then close the Component Services console.
Step 3: Set the Elevated Privileges Using Group Policy
Because most packages allow only local administrators of the computer to install the package, you should use elevated privileges to advertise the package per-computer in Group Policy. Network administrators can create policies for one user, one computer, or a group of users. For more information about how to create special policy profiles, see the System Policy Editor Help. For more information about how to configure policies, see Help in the Group Policy snap-in.
In the Windows Start menu, click All Programs, click Administrative Tools, and then click Component Services.
Expand Active Directory Users and Computers.
The Active Directory Users and Computers tree is displayed.
Right-click the domain node and then click Properties.
In the Properties dialog box, click the Group Policy tab.
In the Group Policy Objects Links box, select a Group Policy object, and then click Edit.
Open the Computer Configuration\Administrative Templates\Windows Components\Windows Installer folder.
In the details pane, double-click Always install with elevated privileges.
In the Properties dialog box, select the Enabled option to turn the setting on, and then click OK.
Open the User Configuration\Administrative Templates\Windows Components\Windows Installer folder and repeat steps 7 and 8.
Note: |
|---|
You can use the System Policy Editor and Windows Installer policy to set the
Always install with elevated privileges policy. You must set the policy for the computer and for each user. If you choose not to use the Group Policy Editor or the System Policy Editor, you can specify the same setting on each computer by changing a value in the Windows registry.
|
Step 4: Verify that the Package is Ready to be Assigned to Computers
In the Component Name - English Properties dialog box, click the Deployment tab.
Under Deployment type, click Assigned.
Under Deployment options, select the options for when and how to deploy the component.
Browse the other tabs and set options as necessary. For details, see Group Policy Help, which is available in the dialog box.
Step 5: Deploy Other Required Components
To deploy other .NET Framework 3.5 components, repeat step 1 and add the .msi and .msp files to the designated Active Directory Group Policy.
Redeploying a Package
In some cases you might want to redeploy a software package. For example, this might be required if you upgrade or modify the package.
Start the Active Directory Users and Computers console. To do this, in the Windows Start menu, select Administrative Tools, and then click Active Directory Users and Computers.
In the console tree, right-click the domain node and then click Properties.
Click the Group Policy tab, click the Group Policy object that you used to deploy the package, and then click Edit.
Expand the Software Settings container that contains the software installation item that you used to deploy the package.
Click the software installation container that contains the package.
In the right pane of the Group Policy Object Editor, right-click the program, select All Tasks, and then click Redeploy application.
You will see the following message:
Redeploying this application will reinstall the application everywhere it is already installed. Do you want to continue?
Click Yes.
Close the Group Policy Object Editor console, click OK, and then close the Active Directory Users and Computers snap-in.
Removing a Package
You can remove a published or assigned package if it is no longer needed.
Start the Active Directory Users and Computers snap-in. To do this, in the Windows Start menu, click Administrative Tools, and then click Active Directory Users and Computers.
In the console tree, right-click the domain name, and then click Properties.
Click the Group Policy tab, click the Group Policy object that you used to deploy the package, and then click Edit.
Expand the Software Settings container that contains the software installation item that you used to deploy the package.
Click the software installation container that contains the package.
In the right pane of the Group Policy Object Editor, right-click the program, select All Tasks, and then click Remove.
Do one of the following:
Click Immediately uninstall the software from users and computers, and then click OK.
Click Allow users to continue to use the software, but prevent new installations, and then click OK.
Close the Group Policy Object Editor console, click OK, and then close the Active Directory Users and Computers console.