For most devices, you should design your device and supporting files so that Setup can install the device at an appropriate time during system startup, or dynamically at any time after startup while the system is running. Certain devices, however, must be installed during a particular phase of system startup. To assist vendors of such devices, this section provides some background information on the system setup phases as they relate to device installation.
When Windows® boots on a system, the initial phase of the Setup program installs only the minimum number of devices needed for Windows to run, such as the keyboard, mouse, video adapter, SCSI/Disk, and Machine/HAL. This phase of the Setup program is known as text-mode setup.
For a user to install your device during text-mode setup, your distribution disk must include a text file named txtsetup.oem. For more information, see Installing a Boot Driver.
After text-mode setup has completed, the Setup program boots Windows and proceeds with the GUI-mode setup phase of the installation. Setup installs most devices during GUI-mode setup.
Devices that are not installed during GUI-mode setup include those that require user interaction to be installed. For example, if this is the first time a device is being configured on the system and a co-installer for the device supplies one or more custom Finish pages, Setup must display the pages to the user. Setup performs such a device installation when a user with administrative privileges logs on.
Once a system is up and running, a user can install new devices:
If the device and the bus support hot-plug notification, device installation is initiated automatically.
If the user needs to power down the system and open the system box to plug in the device, the device will be recognized and configured when the system boots.
If the device can be plugged in while the system is running and the device and the bus do not support hot-plug notification, use the Add Hardware Wizard to initiate device configuration. (Select Install.)
If Setup can install the device in the trusted context of a system process, the user does not need administrative privileges to install the device. If Setup needs to prompt the user for information, it requires the process context of an administrative user to install the device.
To update a driver for an installed device, use the Device Manager or click on the Hardware tab of the appropriate Control Panel program. (Clicking the Properties button in the Hardware tab for a device listed in Control Panel brings up the Device Manager properties for the device.)