The first step in creating a custom installation is to build an answer file. You use an answer file to configure Windows settings during installation. For example, you can configure the default Internet Explorer® settings, networking configurations, and other customizations. Additionally, the answer file contains all of the settings that are required for anunattended installation. During installation, you will not be prompted with user interface pages.
In this section, you will create an answer file using Windows System Image Manager (Windows SIM), a utility for creating and modifying unattended answer files and configuration sets. A simple answer file includes basic Windows Setup configuration and minimum Windows Welcome customizations. This example doesnot import any special drivers, applications, or packages.
After you install the Windows AIK on your technician computer, a sample of this answer file, Corp_autounattended_sample.xml, will be available at C:\Program Files\Windows AIK\Samples.
To create an answer file
In this step, you copy a Windows image file (.wim) to your technician computer and create an answer file.
1. On your techniciancomputer, insert the Windows 7 product DVD.
2. Navigate to the \Sources directory on your DVD-ROM drive and copy the Install.wim file from the Windows product DVD to a location on the computer.
3. To open Windows SIM, click Start, click All Programs, click Microsoft Windows AIK, and then click Windows System Image Manager.
4. On the Windows SIM File menu, click Select Windows Image.
5.In the Select a Windows Image dialog box, navigate to the location where you saved Install.wim in Step 1, and then click Open.
You will be prompted to select an image. Choose the Windows image that you want to install, and then click OK.
You will be prompted to create a catalog file. Click Yes to generate the file.
If you are prompted to approve the program by a User Account Control window, youcan select to allow the program or cancel the installation.
6. On the File menu, click New Answer File. An empty answer file appears in the Answer File pane.
Add and Configure Windows Settings
In this step, you define basic disk configuration and Windows Welcome settings.
1. In the Windows SIM Windows Image pane, expand the Components node to display available settings.
2. On the expandedlist of components, add the components in the table below to your answer file by right-clicking the component, and then selecting the appropriate configuration pass. This action adds the component to your answer file in the specified configuration pass, or phase, of Windows installation. Adding the optional components allows you to more easily test your installation in Step 2, Building a ReferenceInstallation.
Expand the component list in the Windows Image pane until you see the lowest child node from the table below. For example, expand Microsoft-Windows-Setup to see the DiskConfiguration node. Expand the DiskConfiguration node until you see the Disk node. Continue expanding the tree under Microsoft-Windows-Setup until you see the CreatePartition node listed in the table below.Add this CreatePartition node to your answer file. This shortcut adds the setting and all parent settings to your answer file in one step. |
Component | Configuration pass |
Microsoft-Windows-Deployment\Reseal | oobeSystem |
Microsoft-Windows-International-Core-WinPE\SetupUILanguage | windowsPE |
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition | windowsPE |Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition | windowsPE |
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition * | windowsPE |
Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition * | windowsPE |
Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo | windowsPE |