Using the Add Hardware Wizard to Install a Driver Package
The example in this topic uses the ToastPkg sample driver package. Within the WDK installation directory, the package's source files are located in the src\general\toaster\toastpkg\toastcd directory. After you have built and digitally-signed this driver package, copy the driver package to the directory c:\toaster on the test computer.
To install the driver package through the Add Hardware Wizard, do the following:
To use the Add Hardware Wizard, the user must be a member of the Administrators group on the test computer and run the Add Hardware Wizard from an elevated command prompt. To open an elevated Command Prompt window, create a desktop shortcut to Cmd.exe, right-click the Cmd.exe shortcut, and select Run as administrator.
From the elevated command prompt, do one of the following:
In Windows 7 and later versions of Windows, run Hdwwiz.exe to start the Add Hardware Wizard, and then click Next.
Note Starting with Windows 7, the Add Hardware Wizard can no longer be started from the Control Panel.
In Windows Vista and earlier versions of Windows, run Hdwwiz.cpl to start the Add Hardware Wizard, and then click Next.
Select Advanced Option, and then click Next.
Click Show all devices in the list box, and then click Next.
Click Have Disk.
Type the path of the C:\toaster directory.
Click Toastpkg.inf, and then click Open.
Click Next on the next two wizard pages, and then click Finish to complete the installation.
Important The Add Hardware Wizard is intended for driver developers and not end-users. If your driver package requires the functionality that is provided by this wizard for installation, you should supply end-users with a device installation application that provides the same functionality. For an example of a device installation application that installs driver packages, refer to the Device Console (Devcon.exe) sample in the MSDN Code Gallery.