This walkthrough describes how to build a simple answer file. A simple answer file includes basic Windows Setup configuration and minimum Windows Welcome customizations. This example does not import any special drivers, applications, or packages. At the end of this walkthrough, you can run Windows Setup with this answer file to create an unattended installation.
To complete this walkthrough, you need the following:
In this step, you build a catalog and a new blank answer file. A catalog file (.clg) is a binary file that contains the state of all the settings and the packages in a Windows image.
In this step, you define basic disk configuration and Windows Welcome settings.
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\ CreatePartition
windowsPE
Microsoft-Windows-Setup\DiskConfiguration\Disk\ModifyPartitions\ ModifyPartition
Microsoft-Windows-Setup\ImageInstall\OSImage\InstallTo
Microsoft-Windows-Setup \UserData
Microsoft-Windows-International-Core-WinPE
Microsoft-Windows-International-Core-WinPE\SetupUILanguage
Microsoft-Windows-Shell-Setup \OEMInformation
specialize
Microsoft-Windows-Shell-Setup \OOBE
oobeSystem
Microsoft-Windows-Deployment\Reseal
Microsoft-Windows-Shell-Setup\Autologon
auditSystem
InputLocale = <Input Locale>
SystemLocale = <System Locale>
UILanguage = <UI Language>
UserLocale = <User Locale>
Microsoft-Windows-Setup\DiskConfiguration
WillShowUI = OnError
Microsoft-Windows-Setup\DiskConfiguration\Disk
DiskID = 0
WillWipeDisk = true
Microsoft-Windows-Setup\DiskConfiguration\Disk\CreatePartitions\CreatePartition
Extend = false
Order = 1
Size = 15000 (Note: you can adjust Size accordingly; this example uses 15 gigabytes.
Type = Primary
Microsoft-Windows-Setup \DiskConfiguration\Disk\ModifyPartitions\ModifyPartition
Active = true
Format = NTFS
Label = OS_Install
Letter = C
PartitionID = 1
Microsoft-Windows-Setup\ImageInstall\OSImage\
AcceptEula = true
Microsoft-Windows-Setup \UserData\ProductKey
Key = <product key>
Manufacturer = <company name>
HelpCustomized = false
SupportPhone = <support number>
SupportURL = <support URL>
SupportHours = <support hours>
Microsoft-Windows-Shell-Setup\OOBE
ProtectYourPC = 1
NetworkLocation = Work
ForceShutdownNow = false
Mode = Audit
Microsoft-Windows-Shell-Setup\AutoLogon
Enabled = true
LogonCount = 5
Username = Administrator
In this step, you validate the settings in your answer file and then save them to a file.
You now have a basic answer file that automates Windows Setup. To test your answer file, use the DVD-boot method to install Windows Vista with an answer file. For more information, see Walkthrough: Deploy Windows by Booting from a DVD. Once you have successfully installed the operating system, return to this section to learn more ways to customize your installation.
A sample of this answer file is available in the /Samples directory (C:\Program Files\Windows OPK\Samples).