Rajat goyal wrote:
I have a .inf file and a .sys file and a couple of dll’s. to install
the driver manually i do from elevated command prompt :
|devcon install driver.inf HID\driver|
No, no, no, no!!! That does NOT do what you think it does. “devcon
install” is an enticing-sounding tool, but it CANNOT be used to install
plug-and-play drivers. What that command does is create a FAKE device
with the ID you specify, then load your driver to handle that fake
device. Your driver will not be talking to real hardware.
Do not install drivers manually. The best way is to use something like
“dpinst” to help do your installation. If necessary, you can use
“devcon update” to replace the drivers with your set, but “devcon
install” will NOT do it.
||
I want some pointers on how to make the installer for this driver .
Thanks.
What I do is use a simple installer based on NSIS that copies the driver
package to the user’s disk, then invokes DPInst (which I also have to
ship in my package) to pre-install the drivers in the driver store,
where plug-and-play can find them.
Also when i work in windows 7 64bit , i am required to sign the driver
before installing it . How do i distribute the signature in windows
and how will it be verified ?
When you sign the driver, your certificate will be embedded in the sys
file. In addition, when you sign it, you have to use a “cross
certificate” (available either from Microsoft or from the certificate
authority) that continues the chain of trust all the way to the
Microsoft Code Verification Authority. The kernel, then, only has to
verify that the trust chain is valid, and that the chain ends with the
Microsoft Code Verification Authority. It doesn’t actually verify your
signature.
This means that you must use a very specific kind of certificate. It
must be a Class 3 Code-Signing Certificate issued by one of the short
list of vendors that has a cross-certificate for kernel driver signing.
VeriSign, GlobalSign, and Thawte qualify, at least. We talked about
GoDaddy last week, but I don’t remember whether the discussion ended up
positive or negative.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.