You can customize the deployment based on the chassis type of the computer. The scripts create local variables that can be processed in the CustomSettings.ini file. The local variables IsLaptop, IsDesktop, and IsServer indicate whether the computer is a portable computer, desktop computer, or server, respectively.

Note   In earlier versions of the Deployment Workbench, the IsServer flag indicated that the existing operating system is a server operating system (such as Windows Server 2003 Enterprise Edition). This flag has been renamed to IsServerOS.

To implement local variables in the CustomSettings.ini file

1.   In the [Settings] section, on the Priority line, add a custom section to customize deployment based on the chassis type (ByChassisType in the example in Listing 1, where Chassis represents the type of computer).

2.   Create the custom section that corresponds to the custom section defined in step 1 (ByChassisType in the example in Listing 1, where Chassis represents the type of computer).

3.   Define a subsection for each chassis type to detect (Subsection=Laptop-%IsLaptop%, Subsection=Desktop-%IsDesktop%, Subsection=Server-%IsServer% in the example in Listing 1).

4.   Create a subsection for each True and False state of each subsection defined in step 3 (such as [Laptop-True], [Laptop-False], [Desktop-True], [Desktop-False] in the example in Listing 1.

5.   Under each True and False subsection, add the appropriate settings based on the chassis type.

Listing 1. Example of Customizing Deployment Based on Chassis Type in the CustomSettings.ini File

[Settings]

 

Priority=...,ByLaptopType,ByDesktopType,ByServerType

 

[ByLaptopType]

Subsection=Laptop-%IsLaptop%

 

[ByDesktopType]

Subsection=Desktop-%IsDesktop%

 

[ByServerType]

Subsection=Server-%IsServer%

      .

      .

      .

 

[Laptop-True]

      .

      .

      .

 

[Laptop-False]

      .

      .

      .

 

[Desktop-True]

      .

      .

      .

 

[Desktop-False]

      .

      .

      .

 

[Server-True]

      .

      .

      .

 

[Server-False]

      .

      .

      .


Related Topics

Microsoft Deployment Toolkit Samples Guide