Microsoft Windows Registry Guide, Second Edition

Creating Distribution Folders

To add files to the Windows distribution folder, you start by making a copy of the CD's i386 folder onto your hard disk because you can't modify the CD. You don't need the rest of the files or folders on the CD–just the i386 folder. In a corporate deployment, you'll eventually replicate the customized i386 folder on distribution servers and then deploy the command that installs Windows from them. If you're a power user, you'll likely burn a custom CD that contains your files. You add files to the distribution folder by creating the structure shown in Figure 14-1.

Figure 14-1 In addition to creating this folder structure, you must set OEMPreinstall=Yes in your Windows answer file.

Here's a description of the most important files and folders in Figure 14-1:

TIP

You can use Setup Manager to create the i386 distribution folder for Sysprep, Remote Installation Services, or an unattended installation using an answer file. Setup Manager is in Deploy.cab, which is located in \Support\Tools on the Windows CD. Open Deploy.cab in Windows Explorer, and extract its contents to a folder on your hard disk. I prefer to create the distribution folder manually because many options aren't available through Setup Manager's user interface. For more information, see the section “Setup Manager” later in this chapter.

Customizing Default Settings

Windows doesn't invent its settings automatically. It uses four INF files in the i386 distribution folder to create the registry's hive files when you install the operating system. These INF files use the same syntax as the one I described in Chapter 11, “Scripting Registry Changes,” and you should be able to customize them easily. Here are those four INF files:

You can change any of the Windows default settings by changing the setting in the hive files listed. For example, if you want to deploy some of the per-user hacks shown in Chapter 4, “Hacking the Registry,” change those values in the file Hivedef.inf in lieu of creating a default user profile for Windows. If you want to change file associations for every computer in the organization, change them in the file Hivecls.inf. Of course, this method isn't officially supported, so carefully test your changes before deploying in an enterprise environment.

Категории