Answer File = Sysprep.inf
The [Unattended] section for Sysprep.inf contains entries for running Setup. For the Unattend.txt version, see [Unattended] (Unattend.txt).
Entry | Description |
---|---|
ExtendOemPartition | Specifies whether to extend the partition on which you install the Microsoft® Windows® operating system. |
InstallFilesPath | Specifies the location of files necessary for installation during Mini-Setup, such as the language files, so that the installation does not stop to prompt for end-user input. |
KeepPageFile | Specifies whether to regenerate the page file. |
OemPnPDriversPath | Specifies the path to one or more folders that contain Plug and Play drivers not distributed with Drivers.cab on the Windows product CD. |
OemSkipEula | Specifies whether the end user accepts the End-User License Agreement (EULA) included with Windows. |
ResetSourcePath | Specifies whether to change the registry setting of the source path for the Setup files. |
TapiConfigured | Specifies whether to preconfigure telephony application programming interface (TAPI) settings on the installation. |
UpdateHAL | Loads the multiprocessor hardware abstraction layer (HAL) on the destination computer, regardless of whether it is a uniprocessor or an multiprocessor computer. |
UpdateInstalledDrivers | Specifies whether to call Plug and Play after Mini-Setup, to re-enumerate all the installed drivers, and to install any updated drivers in the driver path. |
UpdateUPHAL | Identifies the processor type and loads the appropriate kernel. |
This sample demonstrates one use of the [Unattended] section of Sysprep.inf.
[Unattended] ExtendOemPartition = 1 2000 InstallFilesPath = C:\Sysprep\i386 KeepPageFile = 1 OEMPnPDriversPath = drivers\audio;drivers\net OEMSkipEula = No ResetSourcePath = E: TapiConfigured = Yes UpdateHAL = MPS_MP,%WINDIR% \inf\hal.inf UpdateInstalledDrivers = Yes UpdateUPHAL = MPS_UP,%WINDIR% \Inf\Hal.inf
Specifies whether to extend the partition on which you install the Windows operating system.
Syntax | ExtendOEMPartition = 0 | 1 extra_size_in_MB |
---|---|
Values | 0 Sysprep does not extend the partition. 1Sysprep extends the partition to fill out the hard disk. extra_size_in_MBSysprep increases the current partition size by this amount. This is useful if you want to configure more than one partition on the hard disk. |
Example | ExtendOEMPartition = 1 2000 |
Comments | Setup extends this destination partition into any available unpartitioned space that physically follows it on the disk.
ExtendOemPartition automatically leaves the last cylinder on the hard disk free to enable dynamic disk support to work. Important
If your manufacturing process requires FAT32, use the Oformat command-line tool to format the hard disk so that you configure it optimally for NTFS. Use the Convert command-line tool to convert the file system. You can also convert the partition during text-mode Setup by setting the FileSystem entry in the [Unattended] section of Unattend.txt to ConvertNTFS. Note that FileSystem is not a valid entry in Sysprep.inf. However, the hard drive will perform better if you use the Convert command-line tool instead of the FileSystem entry. Instead of extending the partition in Sysprep, you can also use the ExtendPartition entry in the [ComputerSettings] section of Winbom.ini to extend the partition using the Factory tool. |
Specifies the location of files necessary for installation during Mini-Setup, such as the language files, so that the installation does not stop to prompt for end-user input.
Syntax | InstallFilesPath = path_to_installation_files_on_computer |
---|---|
Value | path_to_installation_files_on_computer Valid only for Sysprep.inf. |
Example | InstallFilesPath = C:\Sysprep\i386 |
Comments | For example, if there is a copy of the \i386 folder in the root of the end user's system drive, you need to specify InstallFilesPath in the Sysprep.inf file so that Setup can find the files, such as:
InstallFilesPath = "C:\Sysprep\i386" InstallFilesPath does not support environment variables (for example, |
Specifies whether to regenerate the page file.
Syntax | KeepPageFile = 0 | 1 |
---|---|
Values | 0 Regenerates the page file so that it is large enough to accommodate the amount of random access memory (RAM) on the computer. (Default) 1Does not regenerate the page file. |
Example | KeepPageFile = 1 |
Comments | Valid only for Sysprep.inf. After Sysprep runs, Mini-Setup or Windows Welcome automatically regenerates the system's page file to accommodate differences in the amount of RAM between the master computer and the destination computer. The default setting ensures that the page file is large enough to accommodate the amount of RAM on the computer. If the amount of RAM is the same on both the computer used to create the master installation and the destination computers, you do not need to regenerate the paging file. If you delete the page file by using Windows PE and KeepPageFile = 0 or 1 in Sysprep.inf, the page file will be re-created based on the master computer's page file setting. For more detailed information on how to use the KeepPageFile entry with Sysprep.inf, see the KB article (Q813138), "Description of the KeepPageFile= setting for Windows XP and Windows Server 2003." |
Specifies the path to one or more folders that contain Plug and Play drivers not distributed with Drivers.cab on the Windows product CD.
Syntax | OemPnPDriversPath = folder_1_on_system_drive |
---|---|
Value | folder_1_on_system_drive[;folder_2_on_system_drive]... |
Example | OemPnPDriversPath = drivers\audio;drivers\net |
Registry subkey | HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\DevicePath |
Comments | The folders must contain all the files necessary to install the particular devices: catalog files, .inf files, and drivers.
For example, if you have a folder called \Drivers with subfolders called \Audio and \Net, specify
If there is already a path in HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
Important
In Sysprep.inf, the value of OemPnPDriversPath can be any location on the computer's hard disk. If the drivers are not in the Drivers.cab file on the computer's hard disk or in the location specified by OemPnPDriversPath, Setup prompts the end user for the location of the drivers the first time the computer starts, before Windows Welcome or Mini-Setup runs. As in Windows 2000, you can use OemPnPDriversPath in Sysprep.inf to specify the location of additional drivers. However, you can also use the [PnPDrivers] section in Winbom.ini to update drivers on a previously-created image of the installed operating system. |
Specifies whether the end user accepts the End-User License Agreement (EULA) included with Windows.
Syntax | OEMSkipEula = Yes | No |
---|---|
Values | Yes Skips the EULA and implies that the person performing the installation has read and agreed to the contents of the license agreement included with the product. It also implies that the end user on whose behalf you installed Windows has agreed to the license agreement. NoDoes not skip the EULA and prompts the end user to accept it. |
Example | OEMSkipEula = No |
Comments | Important
|
Specifies whether to change the registry setting of the source path for the Setup files.
Syntax | ResetSourcePath = * | path_to_install_files |
---|---|
Values | * No change to the registry values. (Default) path_to_install_filesSpecifies the location of the Setup files in the registry. |
Example | ResetSourcePath = E: |
Registry subkey | HKEY_LOCAL_MACHINE\Software\Microsoft\ Windows\CurrentVersion\Setup\SourcePath and HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\ CurrentVersion\Setup\ServicePackSourcePath |
Comments | Important
|
Specifies whether to preconfigure TAPI settings on the installation.
Syntax | TapiConfigured = Yes | No |
---|---|
Values | Yes The TAPI settings are preconfigured for the end user. In this case, all TAPI locations in the registry are preserved after Sysprep. (Default) NoThe TAPI settings are not preconfigured, and the end user must enter them during Windows Welcome. Setup deletes keys in the following registry location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\ Configured TAPI settings are not altered. This is the same as TapiConfigured = Yes. |
Example | TapiConfigured = Yes |
Comments | Important
|
Loads the multiprocessor hardware abstraction layer (HAL) on the destination computer, regardless of whether it is a uniprocessor or an multiprocessor computer.
Syntax | UpdateHAL = hwid, |
---|---|
Value | hwid, (where hwid is either MPS_MP or ACPIAPIC_MP) |
Example | UpdateHAL = MPS_MP, |
Comments | Valid only for Sysprep.inf. Not required in Windows XP or the Windows Server 2003 family.
Important
Add the modified Sysprep.inf file to the destination computer, in the |
Specifies whether to call Plug and Play after Mini-Setup, to re-enumerate all the installed drivers, and to install any updated drivers in the driver path.
Syntax | UpdateInstalledDrivers = Yes | No |
---|---|
Values | Yes Installs updated drivers. NoDoes not install updated drivers. (Default) |
Example | UpdateInstalledDrivers = Yes |
Comments | Do not use UpdateInstalledDrivers with the |
Identifies the processor type and loads the appropriate kernel.
Syntax | UpdateUPHAL = hwid, |
---|---|
Value | hwid, (where hwid is either MPS_UP or ACPIAPIC_UP) |
Example | UpdateUPHAL = MPS_UP, |
Comments | Valid only for Sysprep.inf. Required if the master installation is built on an APIC multiprocessor computer and the image of that master installation is on compatible APIC uniprocessor or multiprocessor destination computers. |