When installing a signed driver (i.e. with a properly signed .CAB) on Windows 7 through DpInst, unless it’s a WHQL-signed driver, you cannot install it silently. If you run DpInst in the non-silent mode, it’ll prompt you to trust the “publisher”. If you run DpInst in silent mode, it would fail with a signing-related error code (something like 0x800b0109 — check your setupapi.app.log).
Share
The straightforward way to do it is to add the signing certificate to the TrustedPublishers. You can do it programatically (the implementation of win32exception is left as an exercise to the reader):