banner

[Unattended] (Unattend.txt)

Answer File = Unattend.txt

The [Unattended] section for Unattend.txt contains entries for running Setup. For the Sysprep.inf version, see [Unattended] (Sysprep.inf).

Required in Unattend.txt file. Otherwise, Setup ignores Unattend.txt.

Entry Description
ActivateProxy Specifies the proxy settings to use when connecting to the Internet to activate this installation of Windows XP, if you set AutoActivate to Yes.
AutoActivate Specifies whether Setup attempts to activate this installation of Windows XP automatically through an existing Internet connection.
ComputerType Specifies the type of custom hardware abstraction layer (HAL) that Setup Loader loads and installs by text-mode Setup.
CrashDumpSetting Specifies the creation and type of the dump file.
DisableVirtualOemDevices Specifies whether to load virtual original equipment manufacturer (OEM) devices during Setup.
DUDisable Specifies whether to connect to the Windows Update site to download updates during Setup.
DUShare Specifies the location for downloaded Dynamic Update .cab files.
DUStopOnError Specifies whether to stop the Windows Update process when an error is detected.
DriverSigningPolicy Specifies how to process unsigned drivers during unattended Setup.
ExtendOemPartition Specifies whether to extend the partition on which you install Windows.
FactoryMode Specifies whether %SYSTEMDRIVE%\Sysprep\Factory.exe runs on first boot.
FileSystem Specifies whether to convert the primary partition to NTFS or to leave it alone.
ForceHALDetection Specifies whether text-mode Setup examines the operating system and determines the most appropriate hardware abstraction layer (HAL) to install during an upgrade.
Hibernation Specifies whether to enable the hibernation option in the Power Options control panel.
KeyboardLayout Specifies the type of keyboard layout to install during text-mode Setup.
NTUpgrade Specifies whether Setup upgrades a previous version of Windows NT 3.51, Windows NT 4.0, Windows 2000, Windows XP, or the Windows Server 2003 family.
OemFilesPath Specifies the path to the \$OEM$ folder (containing OEM files) if it does not exist under the i386 folder of the distribution share point.
OemPnPDriversPath Specifies the path to one or more folders that contain Plug and Play drivers not distributed in Drivers.cab on the Windows product CD.
OemPreinstall Specifies whether Setup installs its files from distribution folders.
OemSkipEula Specifies whether the end user must accept the End-User License Agreement (EULA) included with Windows.
OverwriteOemFilesOnUpgrade Specifies whether to overwrite OEM-supplied files that have the same name as Windows XP or Windows Server 2003 operating system files during an unattended upgrade.
Repartition Specifies whether to delete all partitions on the first drive of the client computer and to reformat the drive with the NTFS file system.
TargetPath Determines the installation folder in which you install Windows.
UnattendMode Defines the unattended mode to use during GUI-mode Setup.
UnattendSwitch Specifies whether Setup skips Windows Welcome or Mini-Setup when preinstalling Windows XP Home Edition or Windows XP Professional using the CD boot method.
WaitForReboot Specifies whether the computer waits 15 seconds after GUI-mode Setup finishes.
Win9xUpgrade Specifies whether Setup upgrades previous installations of Windows 98, Windows 98 Second Edition, or Windows Millennium Edition to either Windows XP Home Edition or Windows XP Professional, as specified in the [Win9xUpg] section.

Sample

This sample demonstrates one use of the [Unattended] section of Unattend.txt.

[Unattended]
ActivateProxy = Proxy
AutoActivate = Yes
ComputerType = "OEM HAL", OEM
CrashDumpSetting = 0
DisableVirtualOemDevices = Yes
DUDisable = No
DUShare = "%SYSTEMDRIVE%\DU_Cabs"
DUStopOnError = Yes
DriverSigningPolicy = Block
ExtendOemPartition = 1000
FactoryMode = Yes
FileSystem = ConvertNTFS
ForceHALDetection = Yes
Hibernation = Yes
KeyboardLayout = Us
NTUpgrade = Yes
OemFilesPath = "%SYSTEMDRIVE%\OEM_Files"
OemPnPDriversPath = MyFolder1;MyFolder2
OemPreinstall = Yes
OemSkipEula = No
OverwriteOemFilesOnUpgrade = Yes
Repartition = Yes
TargetPath = *
UnattendMode = FullUnattended
UnattendSwitch = Yes
WaitForReboot = Yes
Win9xUpgrade = Yes

ActivateProxy

Specifies the proxy settings to use when connecting to the Internet to activate this installation of Windows XP, if you set AutoActivate to Yes.

Syntax ActivateProxy = section_name | Proxy
Values section_name
Proxy
Example
ActivateProxy = Proxy
Comments If section_name is Proxy, Windows Product Activation (WPA) uses the proxy settings specified in the [Proxy] section. If section_name is anything else, WPA uses the proxy settings specified in [section_name] in the Unattend.txt file. The entries in [section_name] must match the syntax specified in the [Proxy] section.

Note

  • If your network uses Web Proxy Auto-Discovery (WPAD), you may not need to set the proxy explicitly.

icon Return to top

AutoActivate

Specifies whether Setup attempts to activate this installation of Windows XP automatically through an existing Internet connection.

Syntax AutoActivate = Yes | No
Values Yes

Attempts to activate this installation of Windows XP during unattended Setup through an existing Internet connection on the computer.

No

Requires the end user to activate Windows XP either through an Internet connection or by telephone.

Default Value No
Example
AutoActivate = Yes
Comments You must specify a valid Product Key in the ProductKey entry of the [UserData] section. If the Internet connection is through a firewall, you may need to specify the relevant proxy settings in the ActivateProxy entry.

Important

  • Always requires a Product Key.
  • The Product Key that you use to activate this installation using Windows Product Activation (WPA) must match the number on the Certificate of Authenticity (COA). The original equipment manufacturer (OEM) packages the COA with the retail product or affixes it to the computer case.
  • Standard licensing agreements specify that you can use a given Product Key to activate only one installation of Windows XP on one computer. WPA enforces this requirement.
  • If you use Winnt.exe to install Windows, you must set UnattendSwitch to Yes.
  • Setting AutoActivate to Yes does not guarantee successful activation of this installation of Windows XP. For example, the activation attempt will fail if the computer cannot successfully connect to the Internet.

icon Return to top

ComputerType

Specifies the type of custom hardware abstraction layer (HAL) that Setup Loader loads and installs by text-mode Setup.

Syntax ComputerType = HAL_description [, Retail | OEM]
Values

HAL_description [, Retail | OEM]

Retail

Informs Setup that the HAL to install is part of Windows XP or Windows Server 2003 family.

OEM

Indicates that the HAL to load is OEM-supplied. If this is the case, you must also list the driver name in the [OEMBootFiles] section of the Unattend.txt file.

Examples
ComputerType = "OEM HAL", OEM
ComputerType = "Advanced Configuration and Power Interface (ACPI) PC", Retail
Comments This entry is valid only when the value of OemPreinstall is Yes. If the ComputerType entry is not present, Setup attempts to detect the type of computer and install the appropriate retail HAL.

The HAL_description string identifies the Hardware Abstraction Layer (HAL) to install. It must match one of the strings in the [Computer] section of TxtSetup.sif (for a retail HAL) or TxtSetup.oem (for an OEM HAL).

icon Return to top

CrashDumpSetting

Specifies the creation and type of the dump file.

Syntax CrashDumpSetting = 0 | 1 | 2 | 3
Values 0

Does not create a dump file.

1

Complete Memory Dump: Records the entire contents of system memory to %SYSTEMROOTt%\Memory.dmp when the system stops unexpectedly. If you choose this option, you must have a paging file on the boot volume large enough to hold all of the physical random access memory (RAM) plus 1 megabyte (MB).

2

Kernel Memory Dump: Records only kernel memory to %SYSTEMROOTt%\Memory.dmp when the system stops unexpectedly. This speeds up the process of recording information in a log. Depending on the amount of RAM in your computer, you must have 50 MB to 800 MB available for the paging file on the boot volume.

3

Small Memory Dump (64K): Records the smallest set of useful information that can help identify the problem to %SYSTEMROOTt%\Mini.dmp. This option requires a paging file of at least 2 MB on the boot volume of your computer and specifies that Setup creates a new file each time the system stops unexpectedly.

Default Value Windows XP Home Edition and Windows XP Professional: 3
Windows Server 2003 family: 1
Example
CrashDumpSetting = 0
Comments When the system fails, you can create a dump file that contains information useful for debugging. Dump file types vary by size. The system checks for available space on the boot volume and writes the largest possible dump file.

icon Return to top

DisableVirtualOemDevices

Specifies whether to load virtual OEM devices during Setup.

Syntax DisableVirtualOemDevices = Yes | No
Values Yes

Disables loading virtual OEM devices during Setup.

No

Does not disable loading virtual OEM devices during Setup.

Default Value Yes for preinstallation; No otherwise
Example
DisableVirtualOemDevices = Yes
Comments An example of a virtual OEM device is a RAM disk that has mass-storage drivers, related .inf files, and so on.

During attended Setup, you can disable loading of virtual OEM devices by pressing F4 at the prompt to press the F6 key.

icon Return to top

DUDisable

Specifies whether to connect to the Windows Update site to download updates during Setup.

Syntax DUDisable = Yes | No
Values Yes

Instructs Setup not to connect to the Windows Update site.

No

Instructs Setup to connect to the Windows Update site to download any available Windows XP Setup updates. Setup also downloads any necessary drivers that are not on the Windows XP CD-ROM.

Default Value Yes
Example
DUDisable = No
Comments Specifies whether Setup connects to the Windows Update site to download any available Windows Setup updates or necessary drivers that are not on the Windows CD-ROM.

DUDisable is equivalent to the command:

winnt32 /unattend /dudisable

Setup disables dynamic updates by default so corporate administrators can more easily standardize on a known set of Windows system components.

icon Return to top

DUShare

Specifies the location for downloaded Dynamic Update .cab files.

Syntax DUShare = path_to_downloaded_cabs
Values path_to_downloaded_cabs

Specifies the location for all downloaded Dynamic Update .cab files.

Example
DUShare = "%SYSTEMDRIVE%\DU_Cabs"
Requires You must run winnt32 /DUPrepare:path_to_downloaded_cabs before using this entry.
Comments When a path is specified, the Dynamic Update wizard page is not shown and Setup does not try to connect to Windows Update. Instead, Setup uses the Dynamic Update .cab files from this share.

icon Return to top

DUStopOnError

Specifies whether to stop the Windows Update process when an error is detected.

Syntax DUStopOnError = Yes | No
Values Yes

Stops the Windows Update process when an error is detected.

No

Does not stop the Windows Update process when an error is detected.

Example
DUStopOnError = Yes
Comments Windows Update errors include any failure to process Windows Update files, or the inability to connect to Windows Update. By default, the Windows Update process stops when an error is detected.

icon Return to top

DriverSigningPolicy

Specifies how to process unsigned drivers during unattended Setup.

Syntax DriverSigningPolicy = Block | Warn | Ignore
Values Block

Setup does not install the unsigned device driver.

Warn

Setup stops the installation and prompts the end user for input before accepting the unsigned device driver.

Ignore

Setup continues despite the unsigned driver.

Default Value Warn
Example
DriverSigningPolicy = Block
Comments Signed drivers have gone through the Microsoft driver testing and signing process to ensure they are compatible with Windows XP and the Windows Server 2003 family.

Important

  • Microsoft strongly advises against using DriverSigningPolicy = Ignore unless you have fully tested the device driver in your environment and are sure that it works properly. Using unsigned drivers increases the risk of device driver problems that can affect the performance or stability of the computer.
  • If you are using DriverSigningPolicy = Ignore and you attempt to install a newer, unsigned copy of a driver that distributed with Windows XP or the Windows Server 2003 family, Setup installs the signed Windows XP driver instead of the unsigned drivers, in accordance with the ranking process used by the operating system.
  • A catalog certificate (.cat) file authenticates a driver signature. Microsoft can only use the given certificate to sign drivers for a finite length of time, generally six months. However, as long as you have a digitally signed driver, the subsequent expiration date of the certificate does not affect the status of the driver. A driver signature does not expire, even after the certificate used to sign the driver has expired.

For more information, see:

For more information about driver ranking and how Setup chooses the correct driver, see the Microsoft Device Development Kit (http://www.microsoft.com/ddk/).

icon Return to top

ExtendOemPartition

Specifies whether to extend the partition on which you install Windows.

Syntax ExtendOemPartition = 0 | 1 | extra_size_in_MB
Values 0

Setup does not extend the partition.

1

Setup extends the partition to fill out the hard disk.

extra_size_in_MB

Setup 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 = 1000
Comments This entry causes Setup to extend 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 allow dynamic disk support.

Important

  • You can extend only NTFS file system partitions.
  • When you use ExtendOEMPartition in Sysprep.inf for imaged computers, the destination computerÆs hard disk must be the same size or larger than the hard disk of the original master installation.
  • The partition that you want to extend must have unpartitioned space available following the partition.

If your manufacturing process requires FAT32, use the Oformat command-line tool included in the OEM Preinstallation Kit to format the hard disk so that you configure it 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. FileSystem is not a valid entry in Sysprep.inf. However, the hard drive performs better if you use Convert with Oformat and/or Cvtarea instead of the FileSystem entry. For more information, see the Legacy Methods section of NTFS Preinstallation and Windows XP.

You can also use the ExtendPartition entry in the [ComputerSettings] section of Winbom.ini to extend the partition using the Factory tool.

icon Return to top

FactoryMode

Specifies whether %SYSTEMDRIVE%\Sysprep\Factory.exe runs on first boot.

Syntax FactoryMode = Yes | No
Value Yes

%SYSTEMDRIVE%\Sysprep\Factory.exe runs on first boot.

No

%SYSTEMDRIVE%\Sysprep\Factory.exe does not run on first boot. (Default)

Default Value Yes
Example
FactoryMode = Yes
Comments Use this entry when performing a clean install of the operating system as the first step in building a master installation, which you then plan to duplicate onto multiple destination computers. FactoryMode = Yes will start the computer into Factory mode, where system configuration can be done before imaging. You must place the OPK tools in the %SYSTEMDRIVE%\Sysprep folder.

icon Return to top

FileSystem

Specifies whether to convert the primary partition to NTFS or to leave it alone.

Does not change the primary partition file system.

Syntax FileSystem = ConvertNTFS LeaveAlone
Values ConvertNTFS

Converts the primary partition to NTFS.

LeaveAlone
Example
FileSystem = ConvertNTFS
Comments This entry is provided for backward compatibility with the Windows 2000 unattended Setup.

For the Windows XP and Windows Server 2003 family of operating systems, if your manufacturing processes require that you format the hard disk as FAT32, use the Oformat tool to create a FAT32 volume with clusters aligned in an optimal way for later conversion to the NTFS file system. Then use the Convert command-line tool to convert the file system to NTFS.

You can also convert the partition during text-mode Setup by setting the FileSystem entry equal to ConvertNTFS. However, the hard drive performs better if you use Convert with Oformat and/or Cvtarea instead of using the FileSystem entry. For more information, see the Legacy Methods section of NTFS Preinstallation and Windows XP.

Note

  • If you plan to use ExtendOemPartition during Setup, the file system must be NTFS.
  • FileSystem is not a valid entry in Sysprep.inf.

icon Return to top

ForceHALDetection

Specifies whether text-mode Setup examines the operating system and determines the most appropriate hardware abstraction layer (HAL) to install during an upgrade.

Syntax ForceHALDetection = Yes | No
Values Yes

Installs the most appropriate HAL for the new operating system.

No

Keeps the HAL from the previous operating system.

Default Value No
Example
ForceHALDetection = Yes
Comments

Important

  • If ForceHALDetection=Yes during an upgrade, Setup may lose some user-specified hardware settings.
  • If ForceHALDetection=No during an upgrade, Setup preserves user-specified hardware settings.

icon Return to top

Hibernation

Specifies whether to enable the hibernation option in the Power Options control panel.

Syntax Hibernation = Yes | No
Values Yes

Enables hibernation.

No

Disables hibernation.

Default Value Yes
Example
Hibernation = Yes
Comments Not supported on the 64-bit versions of the Windows Server 2003 family. This setting adds Hibernate to the Shutdown menu and creates the Hiberfil.sys file.

Notes

  • To keep the size of your image file as small as possible, you may delete the hibernation file (Hiberfil.sys) (if it exists) from your master installation.
  • The Hiberfil.sys file created during hibernation mode is as large as the available random access memory (RAM) on the computer. Before beginning hibernation mode, verify that the amount of free disk space on your computer hard drive is greater than or equal to the amount of RAM in the computer.
  • Setup does not support hibernation if any driver or video card does not support Plug and Play.
  • For Windows Server 2003, Enterprise Edition, Windows Server 2003, Datacenter Edition, you cannot use hibernation if the computer uses Terminal Server or if the Physical Address Extension (PAE) Kernel supports 3 GB or more of memory.

    For more information on the PAE Kernel, see the Microsoft Driver Development Kit (DDK), which you can order from the Microsoft DDK Web site (http://www.microsoft.com/ddk/). You can also read the DDK documentation in the MSDN Library (http://msdn.microsoft.com/library/): Select Windows Development, then Driver Development Kit.

icon Return to top

KeyboardLayout

Specifies the type of keyboard layout to install during text-mode Setup.

Syntax KeyboardLayout = layout_description
Value layout_description
Example
KeyboardLayout = Us
Comments If this entry does not exist, Setup detects and installs a keyboard layout.

This entry must match one of the right-hand strings (in quotation marks) in the [Keyboard Layout] section of TxtSetup.sif.

icon Return to top

NTUpgrade

Specifies whether Setup upgrades a previous version of Windows NT 3.51, Windows NT 4.0, Windows 2000, Windows XP, or the Windows Server 2003 family.

Syntax NTUpgrade = Yes | No
Values Yes

Upgrades a previous version of Windows. Only these additional Unattend.txt entries are processed: ProductKey, AutoActivate, DUDisable, DUShare, and DUStopOnError

No

Does not upgrade a previous version of Windows.

Example
NTUpgrade = Yes
Comments This entry is valid only for Winnt32.exe.

Note

    To upgrade from Windows 98 or Windows Millennium Edition, use the Win9xUpgrade entry.

Set NTUpgrade = Yes to upgrade the previous Windows installation. If OemPreinstall is Yes, do not set NTUpgrade equal to Yes.

This entry upgrades your previous version of Windows XP, Windows Server 2003 family, Windows 2000, Windows NT 4.0, or Windows NT 3.51. Setup takes all user settings from the previous installation, and does not require end-user intervention.

The following table provides a comprehensive list of valid upgrade scenarios.

Upgrade from Upgrade to
Windows Server 2003, Standard Edition Windows Server 2003, Enterprise Edition Windows Server 2003, Datacenter Edition
Windows NT 3.51 Server No No No
Windows NT 4.0 Server (with Service Pack 5) Yes Yes No
Windows NT 4.0 Terminal Server Yes* Yes* No
Windows NT 4.0 Enterprise Edition (with Service Pack 5) No Yes No
Microsoft BackOffice® Small Business Server 4.0/4.5 No No No
Windows 2000 Server Yes Yes No
Microsoft Small Business Server 2000 No No No
Windows 2000 Advanced Server No Yes No
Windows 2000 Datacenter Server No No Yes
Windows Server 2003, Standard Edition Yes Yes No
Windows Server 2003, Enterprise Edition No Yes No
Windows Server 2003, Datacenter Edition No No Yes

* You can upgrade from Windows NT 4.0 Terminal Server Edition or Windows 2000 Application Server mode to Windows Server 2003 family, but Setup will warn you that it does not support Terminal Service Application mode.

icon Return to top

OemFilesPath

Specifies the path to the \$OEM$ folder (containing OEM files) if it does not exist under the i386 folder of the distribution share point.

Syntax OemFilesPath =path_to_$OEM$_folder
Value path_to_$OEM$_folder
Example
OemFilesPath = "%SYSTEMDRIVE%\OEM_Files"
Comments The path can be a UNC name. Enclose path_to_$OEM$_folder in quotation marks if it is a long file name.

For more information about the \$OEM$ folder, if you are a computer manufacturer, see the Microsoft Windows XP OEM Preinstallation Kit (OPK) User Guide. Otherwise, see the Microsoft Windows 2000 Server Deployment Guide.

icon Return to top

OemPnPDriversPath

Specifies the path to one or more folders that contain Plug and Play drivers not distributed in Drivers.cab on the Windows product CD.

Syntax OemPnPDriversPath = folder_1_on_system_drive[;folder_2_on_system_drive]...
Values folder_1_on_system_drive[;folder_2_on_system_drive]...
Example
OemPnPDriversPath = MyFolder1;MyFolder2
Dependency
OEMPreinstall = Yes
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 OemPnPDriversPath = drivers\audio;drivers\net in the Unattend.txt file. Setup adds:

  • %SYSTEMDRIVE% to each of the folder names
  • the path for each subfolder to the Plug and Play device search path.

Important

  • The length of the OemPnPDriversPath entry in Unattend.txt must not exceed 4096 characters.
  • You cannot use environment variables to specify the location of a folder.
  • Always use signed drivers. Signed drivers make the operating system more stable and significantly reduce requests for product support.

When using OemPnPDriversPath in Unattend.txt, be sure that the folders are available during GUI-mode Setup or the end user first-run experience. The easiest way to do this is to place the Plug and Play drivers in the \$OEM$\$1 folder. To prevent end users from inadvertently deleting driver folders located at the root of the drive, you can place drivers under the \$OEM$\$$ folder (for example: $OEM$\$$\PnP\Audio).

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 during the first boot of the machine, before Windows Welcome or Mini-Setup.

You can also use the [PnPDrivers] section in Winbom.ini to update drivers on a previously-created image of the installed operating system.

icon Return to top

OemPreinstall

Specifies whether Setup installs its files from distribution folders.

Syntax OemPreinstall = Yes | No
Values Yes

Setup copies the subfolders and files contained in the \platform\$oem$ folder.

No

Setup does not copy these files.

Example
OemPreinstall = Yes
Comments

Note

  • If OemPreinstall = Yes, do not set NTUpgrade to Yes.
  • If OemPreinstall = Yes, unattended Setup automatically stops at the Welcome page. To avoid this pause in your factory environment, set OEMSkipWelcome to 1. Do not distribute any computer with OEMSkipWelcome = 1. Instead, set OEMSkipWelcome to 0 in the Sysprep.inf file you use before delivering the computer to the customer.

icon Return to top

OemSkipEula

Specifies whether the end user must accept the End-User License Agreement (EULA) included with Windows.

Syntax OemSkipEula = Yes | No
Values Yes

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 install Windows has agreed to the license agreement.

No

Implies that the person performing the installation and the end user have not read and agreed to the license agreement.

Example
OemSkipEula = No
Comments

Important

  • You must not use this entry to remove the Microsoft® End-User License Agreement screen because end users must see and accept it. Use Sysprep to ensure that end users see the EULA when the computer starts for the first time.

icon Return to top

OverwriteOemFilesOnUpgrade

Specifies whether to overwrite OEM-supplied files that have the same name as Windows XP or Windows Server 2003 family of operating system files during an unattended upgrade.

Syntax OverwriteOemFilesOnUpgrade =
Values Yes

Overwrites the files if found.

No

Does not overwrite the files if found.

Default Value Yes
Example
OverwriteOemFilesOnUpgrade = Yes
Comments This entry is provided for backward compatibility with Windows 2000 unattended Setup.

icon Return to top

Repartition

Specifies whether to delete all partitions on the first drive of the client computer and to reformat the drive with the NTFS file system.

Syntax Repartition = Yes | No
Values Yes

Deletes all partitions on the first drive and reformats the drive with NTFS.

No

Does not delete partitions or reformat the drive.

Example
Repartition = Yes
Comments

Important

  • Repartition is valid only when performing an unattended Setup by starting the computer from the Windows product CD.

icon Return to top

TargetPath

Determines the installation folder in which you install Windows.

Syntax TargetPath = * | target_path
Values *

Setup generates a unique folder name for the installation.

target_path

Setup installs to the specified folder.

Example
TargetPath = *
Comments * indicates that Setup generates a unique folder name for the installation. The folder name given is usually Windows, unless that folder already exists. In that case, Setup installs into Windows.x (where x is 0, 1, ... 999) if these folders do not already exist.

The path must use 8.3 file names. be Do not include the drive letter in target_path. If you want to specify the target drive, you must use the /tempdrive command-line switch when you run Winnt32.exe.

icon Return to top

UnattendMode

Defines the unattended mode to use during GUI-mode Setup.

Syntax UnattendMode = DefaultHide | FullUnattended | GuiAttended | ProvideDefault | ReadOnly
Values DefaultHide

Specifies that answers in the answer file are defaults. Unlike UnattendMode = ProvideDefault, Setup does not display the user interface to end users if you specify in the answer file all the answers relating to a particular Setup page. If you specify only subsets of the answers on a page, the page appears with the provided answers. The end user can modify any of the answers on the displayed page.

Use UnattendMode = DefaultHide in deployment scenarios where an administrator might want only end users to provide the administrator password on the computer. This behavior is the default if you do not specify unattended mode.

FullUnattended

Specifies a fully unattended GUI-mode Setup. If you do not specify a required Setup answer in the answer file, Setup generates an error.

During an attended Setup, improperly signed hardware drivers generate a warning dialog box. If UnattendMode = FullUnattended, then Setup does not install hardware drivers unless they are properly signed.

Use UnattendMode = FullUnattended in deployment scenarios where you require a complete unattended installation.

GuiAttended

Specifies an attended GUI-mode section of Setup. When specified, the end user must answer all questions in the GUI-mode portion of Setup before Setup finishes.

Use UnattendMode = GuiAttended in preinstallation scenarios when you want to automate only text-mode Setup.

ProvideDefault

Specifies default answers in the answer file. In this case, Setup displays these default answers to the end user, who can change them if they are not appropriate.

Use UnattendMode = ProvideDefault in preinstallation scenarios where the OEM or administrator wants to give the person setting up the computer the option to change the predefined default answers (especially network options).

ReadOnly

Specifies read-only answers in the answer file if the Windows Setup pages containing these answers appear to the end user. Like UnattendMode = ProvideDefault, no user interface appears if the answer file contains all the answers on a page. Unlike UnattendMode = DefaultHide, however, the end user can specify only new answers on a displayed page.

Use UnattendMode = ReadOnly in scenarios where an administrator wants to force specific answers on one page but not others.

Default Value DefaultHide
Example
UnattendMode = FullUnattended
Comments The default value is DefaultHide when you do not specify the entry. When you specify this entry, it fully automates text-mode Setup with or without the necessary answers.

icon Return to top

UnattendSwitch

Specifies whether Setup skips Windows Welcome or Mini-Setup when preinstalling Windows XP Home Edition or Windows XP Professional using the CD boot method.

Syntax UnattendSwitch = Yes | No
Values Yes

Instructs Setup to skip Windows Welcome.

No

Instructs Setup not to skip Windows Welcome.

Default Value No
Example
UnattendSwitch = Yes
Comments Use UnattendSwitch only when you perform an unattended Setup with Winnt.exe, Winnt.sif, and the CD boot method. This entry is not necessary if you use Winnt32.exe to run Setup.

Note

  • UnattendSwitch is not the same as the UnattendedInstall entry in the [Data] section of the answer file. UnattendSwitch controls Windows Welcome; UnattendedInstall does not.

icon Return to top

WaitForReboot

Specifies whether the computer waits 15 seconds after GUI-mode Setup finishes.

Syntax WaitForReboot = Yes | No
Values Yes

Delays the reboot for 15 seconds after GUI-mode Setup finishes.

No

Restarts immediately after GUI-mode Setup finishes.

Default Value Yes
Example
WaitForReboot = Yes

icon Return to top

Win9xUpgrade

Specifies whether Setup upgrades previous installations of Windows 98, Windows 98 Second Edition, or Windows Millennium Edition to either Windows XP Home Edition or Windows XP Professional, as specified in the [Win9xUpg] section.

Syntax Win9xUpgrade = Yes | No
Values Yes

Instructs Setup to upgrade the Windows installation, if found.

No

Instructs Setup not to upgrade the Windows installation, if found.

Default Value No
Example
Win9xUpgrade = Yes
Comments This entry is necessary only when using an answer file to upgrade an existing Windows 98 or Windows Millennium Edition computer to Windows XP Home Edition or Windows XP Professional. This entry is valid only for Winnt32.exe.

For more information, see [Uninstall].

icon Return to top