WinDriver for Windows allows building your driver with custom version information (Provider, Date, Version, etc…). This information can be seen upon entering the Device Properties of your device in the Device Manager or by right-clicking the driver binary and selecting the “Details” tab.

Driver File Details

 

How to build WinDriver with custom version information:

Building with WDK 8 and above:

  1. Install your WDK version. Note that before installing WDK you must install an appropriate Visual Studio version. For more info regarding WDK installation see Download the Windows Driver Kit (WDK) in MSDN.
  2. Create a new Windows Driver project under Visual C++ projects. Select Empty WDM Driver. Make sure that the Visual Studio project name matches your WinDriver project name (generated by the DriverWizard).
  3. Remove the .inf file from the project (under Driver Files).
  4. Edit the .rc file (located in <YOUR_DRIVER_NAME>_installation\sys folder) to have your custom version information.
  5. Add  the .rc file to the project by selecting Project -> Add Existing Item.
  6. In Project-> Properties make sure that the platform matches your version of WinDriver (x86 or x64)
  7. In Project-> Properties-> VC++ Directories -> Include Directories add C:\WinDriver\include 
  8. In Project ->Properties-> Linker -> Input -> Additonal Dependencies add C:\WinDriver\lib\windrvr1240.lib ; %(DDK_LIB_PATH)usbd.lib
  9. Select Windows 7 as Target OS. Note that the selection differs between various Visual Studio versions. For example, in WDK 8 with Visual Studio 2012, the OS version is specified as a configuration option, while in WDK 10 with Visual Studio 2015 it is under Project -> Properties -> Driver Settings.
  10. Build the project.
  11. Place the newly compiled .sys file and your INF file (located in your DriverWizard project’s redist sub-directory) in the same directory. Now you may install the driver using the wdreg utility as described in the WinDriver tutorial, Section 14.2. Windows Driver Distribution.

Building with WDK 7.1.0 and lower: (not supported for WinDriver 12.80 and newer version)

  1. Install WDK 7.1.0
  2. Open a command prompt. Change directory to the <YOUR_DRIVER_NAME>_installation\sys folder.
  3. Run set BASEDIR=<YOUR_WDK_7.1.0_DIRECTORY> (e.g. set BASEDIR=C:\WinDDK\7600.16385.1)
  4. Run ddk_make.bat <PLATFORM> <BUILD_TYPE> (Listing of possible parameters is available by running ddk_make.bat without arguments.
  5. Place the newly compiled .sys file and your INF file (located in your DriverWizard project’s redist sub-directory) in the same directory. Now you may install the driver using the wdreg utility as described in the WinDriver tutorial, Section 14.2. Windows Driver Distribution.

 

NOTE:

If build fails due to a “non-existing paths” error, it may be possible to solve this by editing the Path environment variable from Control Panel -> System and Security -> System -> Advanced system settings -> Advanced -> Environment Variables -> System Variables and removing non existing paths from it.