Wednesday, February 11, 2009

Modifying Setup Using Win32.exe

The Winnt32.exe program is used to customize the process for upgrading existing installations. The Winnt32.exe program is used for installing Windows 2000 from a computer that is currently running Windows 95/98 or Windows NT. As with the Winnt.exe program, you can use command-line switches to customize the setup process. The options available for Winnt32.exe are listed in Table below:

Switch

Description

/copydir[:folder_name]

Creates an additional folder within the system root folder (where the Windows 2000 system files are located).

/copysource[:folder_name]

Also creates an additional folder within the system root folder, but Setup deletes the files after installation is completed.

/cmd[:command_line]

Executes a command before the final phase of Setup.

/cmdcons

Installs additional files to the hard disk that are necessary to load a command-line interface for repair and recovery purposes.

/debug[level][:file_name]

Creates a debug log at the level specified. By default, it creates C:\Winnt32.log at level 2(the warning level).

/s[:source_path]

Specifies the location of the Windows 2000 installation files. It must contain the full path using the drive letter (e.g., f:\path) or UNC (\\server\shared_folder\path). To simultaneously copy files from multiple paths, use a separate /s switch for each source path.

/syspart[:drive_letter]

Copies Setup start files to a hard disk and marks the partition as active. You can then install the hard disk in another computer. When you start that computer, Setup starts at the next phase. Use of this switch requires the /tempdrive switch.

/tempdrive[:drive_letter]

Places temporary files on the specified drive and installs Windows 2000 on that drive.

/unattend[number]
[:answer_file]

Performs an unattended installation. The answer file provides the custom specifications to Setup. If you do not specify an answer file, all user settings are taken from the previous installation.

/udf:id[,udf_file]

Indicates an identifier (id) that Setup uses to specify how a Uniqueness Database File (UDF) modifies an answer file (see the /u entry). The UDF overrides values in the answer file, and the identifier determines which values in the UDF file are used. For example, /udf:RAS_user,Our_company.udf overrides settings specified for the identifier RAS_user in the Our_company.udf file. If no UDF_file is specified, Setup prompts the user to insert a disk that contains the $Unique$.udf file.

It is important to know the difference between command-line switches for Winnt.exe and Winnt32.exe. Most of the switches have similar functionality with a different syntax. Ensure that you know the different syntaxes for each.