DPInst. Specify .sys file location

1.4k Views Asked by At

I am using DPInst-tool to install a driver (I have .inf and .sys files). In dpinst.xml I specified search-element as follows:

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

But during the installation the "Files needed" popup-window appears asking me to specify the location of the .sys file.
Is it possible to specify it's location prior the installation in the dpinst.xml or maybe in the .inf-file?

2

There are 2 best solutions below

0
On

DPInst searches for the .inf file. You are telling DPInst to search recursivly in all subfolders relative to DPInst working directory. Your .inf file should point to a .sys file.

Look at here for info on .inf files and here for more info on DPInst.

0
On

One solution can be that you keep the driver files (.inf and .sys files) in the same folder where you have kept the dpinst.exe. Then run the exe which will take the current location itself to look for driver files. second, dpinst.exe has a "/Path" flag followed by path of the driver files which you want to specify. This can be passed as a command line argument to the dpinst.exe. You can check these flags by running the command : \dpinst.exe /?