Specifying Regional and Language Options
Start by selecting and opening the Install.wim file of the version of Vista you want to deploy by following the procedure outlined in the previous article of this series. In this walkthrough, I’ll be using the 32-bit US English version of Windows Vista SP1 Enterprise Edition. Once the image file is open, create a new answer file by selecting New Answer File from the File menu.
Now we’re ready to begin adding components to our answer file. In the Windows Image pane, expand the Components node and select the Microsoft-Windows-International-Core-WinPE node beneath it. Then right-click on the Microsoft-Windows-International-Core-WinPE node and select Add Setting to Pass 1 windows PE to add this component to the windowPE pass for your answer file. Now in the Properties pane, type values for the various settings of this component as indicated by the following table:
Setting | Value |
InputLocale | en-us |
Layered Driver | |
SystemLocale | en-us |
UILanguage | en-us |
UILanguageFallback | en-us |
UserLocale | en-us |
What we’ve done up to this point is to specify answer file settings for the default language and locale for Windows Setup. The following table describes the settings we’ve just configured in more detail:
Setting | Description |
InputLocale | Keyboard layout and system input locale |
Layered Driver | Optional—used only for Japanese and Korean keyboards |
SystemLocale | Default language for Windows Setup |
UILanguage | Default system user interface language |
UILanguageFallback | Fallback language if UILanguage is not fully localized |
UserLocale | Locale to use for dates, times, currency and numbers |
I’m not sure why you need to specify UILanguage in two places like this, but you need to.
Accepting the EULA
Next we’re going to specify the answer file setting that will automatically accept the EULA. In the Windows Image pane, under Components, find the Microsoft-Windows-Setup node and expand it to display the user data node beneath it. Then right-click on the user data node and select Add Setting to Pass 1 windows PE to add this component to the window PE pass for your answer file. Click the box to the right of the AcceptEula setting to display a drop-down arrow, then click the arrow and select True. The result should look like this (Figure 3):
Figure 3: Configuring the setting to accept the EULA
Tip: If you’re deploying a retail version of Windows Vista (such as Windows Vista Business edition) instead of the volume-licensed Enterprise edition, you’ll also need to specify your product key at this point. To do that, expand the Microsoft-Windows-Setup\UserData node in the Answer File pane to display the ProductKey node beneath it, and they type your 29 character product key (you must include the dashes) in the box beside the Key setting in the Properties pane.
Creating a New Primary Partition
Next, we need to prepare the hard disk on our computer so it will be ready to install Vista onto it. We’re assuming in this article that we’re deploying Vista onto bare-metal, that is, onto a hard drive that is unpartitioned and therefore has no existing volumes on it. We’re also assuming that our target system has only one hard drive in it. This means we have to configure our answer file to create a new primary partition, set it as the active partition, and format it using NTFS. Here’s how we do this:
First, add the Microsoft-Windows-Setup\disk configuration\Disk component to the windows PE configuration pass of your answer file, and in the Properties pane, set the value of disk id to the number 0 (see Figure 4):
Figure 4: Selecting disk 0 in order to create a new partition on it
Next, add the Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition node to the windowsPE configuration pass of your answer file, and in the Properties pane, configure the settings shown in the figure below to create a new primary partition of size 50 GB (see Figure 5):
Tip: If you want your new partition to fill up your entire hard drive, set the Extend setting to True and don’t specify a value for the Size setting.
Now we have to mark our new partition (partition 1) as active and format it using NTFS. To do this, add the Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ModifyPartition node to the windowsPE configuration pass of your answer file, and in the Properties pane, configure the settings shown in Figure 6 below:
Figure 6: Setting the new partition as active and formatting it using NTFS
Note that we also had to specify the Order setting in the above figure—this is required.
Specifying the Target Partition
Now we’re ready to tell Windows Setup which disk partition we want to install Vista onto. To specify where you want to install the image, add the Microsoft-Windows-Setup\DiskConfiguration\ImageInstall\OSImage\InstallTo node to the windowsPE configuration pass of your answer file, and in the Properties pane, configure the settings shown in Figure 7 below:
Figure 7: Specifying that Windows Setup will install Vista onto partition 1 of disk 0
Validating and Saving the Answer File
At this point let’s select Validate Answer File from the Tools menu and check for any error or warning events that are displayed in the Messages pane (only informational events should be displayed, and those you can safely ignore). Now save your answer file using the filename autounattend.xml in the root folder of a USB flash drive. Why name it autounattend.xml? And why save it onto a flash drive? You’ll find out in the next article of this series!
and so on. We’ll continue this in the next article of this series.