This document outlines the basic steps for installing a driver developed with version 8.1x or newer of WinDriver on a target Windows Vista / Server 2003 / XP / 2000 / 98 / Me PC. Detailed driver distribution instructions can be found in the WinDriver User's Manual for your WinDriver version.
The Windows driver distribution steps for version 8.0x of WinDriver are outlined in Technical Document #130.
The Windows distribution steps for version 6.x - 7.x of WinDriver are outlined in Technical Document #117.
Documentation Notes:
Back to Top
Installation Notes:
- You must have administrative privileges in order to install drivers on Windows.
- When distributing your driver, take care not to overwrite a newer version of windrvr6.sys with an older version of this driver.
-
If you wish to distribute drivers for both 32-bit and 64-bit target platforms, you must prepare a separate driver installation package for each platform.
- When upgrading the driver from a previous version of WinDriver, which also uses the windrvr6.sys driver module (v6.00 and above):
Back to Top
Installation Steps:
NOTE: For Windows 98/Me, replace the references to wdreg.exe below with wdreg16.exe.
- Copy windrvr6.sys, windrvr6.inf and wd<version>.cat to the same directory.
NOTE:
- If you select to copy wd<version>.cat to a different location you will need to modify the CatalogFile entry in the windrvr6.inf file to point to the location of the catalog file.
- You can also select not to distribute the wd<version>.cat catalog file, in which case you need to remove or comment-out the CatalogFile line in the windrvr6.inf file. However, note that if you do so the installation will not utilize the driver's Authenticode digital signature (see the WinDriver User's Manual for more information).
- Use the utility wdreg.exe to install WinDriver's kernel module on the target computer:
\> wdreg -inf <path to windrvr6.inf> install
NOTE: Remember that wdreg requires the difxapi.dll DLL (v8.11+).
TIP: If you copy wdreg.exe and difxapi.dll to the same directory as windrvr6.sys and windrvr6.inf, you can simply run the following command from your installation directory in order to install the driver:
install_dir:] wdreg -inf windrvr6.inf install
- If you have created a Kernel PlugIn driver (e.g., my_kp.sys), copy this driver to Windows drivers directory - %windir%\system32\drivers - and install it using the wdreg.exe utility:
\> wdreg -name MY_KP install
NOTE: The driver name is indicated without the *.sys extension.
- On Windows 98/Me, reboot the PC to complete the driver installation.
- For Plug-and-Play devices (PCI/USB): install the device INF file, which registers your device to work with the windrvr6.sys service (normally this file is created using WinDriver's DriverWizard utility).
On Windows 2000/XP/Server 2003/Vista, you can use the wdreg.exe utility with the install command to automatically install the INF file:
\> wdreg -inf <path to device.inf> install
On Windows 98/Me, install the device INF file manually, using Windows' Update Driver wizard (from the Device Manager) or New Hardware Wizard, as explained in the instructions that will be displayed when generating the file with DriverWizard, and in the WinDriver User's Manual for the relevant WinDriver version. Alternatively, copy the INF file to Windows' INF directory
(%windir%\inf) and reboot to let Windows locate and install the file.
- If your project uses the wdapi<version>.lib library (for example wdapi900.lib) - as is the case for the sample and generated DriverWizard projects - you need to distribute the wdapi DLL:
- When distributing 32-bit applications/DLLs to 32-bit targets OR when distributing 64-bit applications/DLLs to 64-bit targets: Copy WinDriver\redist\wdapi<version>.dll (e.g., wdapi900.dll) to the target's %windir%\system32 directory.
NOTE: If you attempt to copy the 64-bit DLL to the
%windir%\system32 directory using a 32-bit installation program, you may find that the DLL file is actually copied to the 32-bit %windir%\sysWOW64 directory. The reason for this is that Windows x64 platforms translate references to 64-bit directories from 32-bit commands into references to 32-bit directories. You can avoid the problem by using 64-bit commands to perform the necessary installation steps from your 32-bit installation program. The system64.exe program, provided in the WinDriver\redist directory of the Windows x64 WinDriver distributions, enables you to do this.
- When distributing 32-bit applications to 64-bit targets: Copy WinDriver\redist\wdapi<version>_32.dll (for example wdapi900_32.dll) to the target's %windir%\sysWOW64 directory and rename the file to wdapi<version>.dll.
- Copy your driver application/DLL to the target and run it!
Back to Top
|