Specifying the Location of a Driver Package

By default, DPInst searches for INF files for driver packages in the DPInst working directory. By default, the DPInst working directory is the DPInst root directory, which is the directory that contains the DPInst executable file (DPInst.exe). However, you can use the /path  DPInst command-line switch to specify a custom DPInst working directory.

In addition to using the /path switch to specify the DPInst working directory, you can also use subDirectory XML elements in a DPInst descriptor file to specify subdirectories under the working directory. If you do not specify subdirectories under the working directory, DPInst searches for INF files in the working directory, but does not search for INF files in any subdirectories that are present. If you use subDirectory elements to specify subdirectories, DPInst searches for INF files in the working directory and also searches recursively for INF files in the specified subdirectories under the working directory.

To configure DPInst to search recursively in subdirectories under the DPInst working directory, include the search XML element and subDirectory XML element in a DPInst descriptor file. The search element is a child element of the dpinst XML element and a subDirectory element is a child element of the search element. You can specify zero or more search elements. Within each search element, you can specify zero or more individual subdirectories or specify all subdirectories in the working directory.

The following code example directs DPInst to recursively search the i386 subdirectory under the DPinst working directory. For example, if the working directory was set to C:\DriverDirectory, DPInst would recursively search for INF files in the C:\DriverDirectory\i386 subdirectory.


<search>
  <subDirectory>i386</subDirectory>
</search>
</dpinst>

The following code example directs DPInst to recursively search the Drivers1 and Drivers2 subdirectories under the DPInst working directory. For example, if the DPInst working directory was set to C:\drivers, DPInst would recursively search for INF files in the C:\DriverDirectory\Drivers1 subdirectory and the C:\DriverDirectory\Drivers2 subdirectory.


<search>
  <subDirectory>Drivers1</subDirectory>
  <subDirectory>Drivers2</subDirectory>
</search>

The following code example uses the wildcard character (*) to direct DPInst to search all of the subdirectories under the DPInst working directory. For example, if the working directory was set to C:\DriverDirectory, DPInst would recursively search for INF files in all subdirectories under the C:\DriverDirectory directory.


<search>
  <subDirectory>*</subDirectory>
</search>

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft