Installing the geolocation driver sample

Because the geolocation driver sample simulates hardware, there is no Plug-n-Play functionality to automate the installation. Instead, must use a Windows utility, devcon.exe, to install the sample.

The following steps outline the installation process.

  1. Make sure that your driver builds without errors.

    1. Enable test signing by running the command “bcdedit /set testsigning on” from an elevated command prompt. (You’ll need to reboot your machine after you enable test signing.)
  2. Copy the DLL and INF files for your driver to a separate folder.

  3. Locate the two co-installer DLL files (either checked or free) from the redist/wdf/processor_type folder where you installed the WDK. Copy these files to the folder that you created in step 3. For example, if you installed the WDK on your drive C, you might copy WUDFUpdate_01009.dll from C:\WinDDK\build#\redist\wdf\x86.

  4. Run Devcon.exe. You can find this program in the tools\devcon folder where you installed the WDK. For example, for a sensor named WDKExample, you type:

    devcon.exe install WDKExample.inf "Sensors\WDKExample"

    Note Do not use Devcon.exe to install released drivers. This recommendation is for testing only.

The Sensors Geolocation Driver Sample

Send comments about this topic to Microsoft