Driver installation tool devcon failed when installing custom driver.
Hello,
I am following the "Write a Hello World Windows Driver (KMDF)" tutorial, but I get failures when running devcon or pnputil. When I run
devcon install KMDFHelloWorld.inf Root\KMDFHelloWorld
I get the error
Device node created. Install is complete when drivers are installed...
Updating drivers for Root\KMDFHelloWorld from C:<filepath>
devcon.exe failed.
and when I run
pnputil /add-driver KMDFHelloWorld.inf
I get
Adding driver package: KMDFHelloWorld.inf
Failed to add driver package: A certificate chain processed, but terminated in a root certificate which is not trusted by the trust provider.
Total driver packages: 1
Added driver packages: 0
I did install the driver files in the test computer and followed the tutorial from there. I am running both devcon and pnputil in the same folder as the driver files which are the .cat, .inf, .sys, and .cer files. It sounds like in the tutorial there might be other files which I need. I also made sure to install the certificate file on my test computer.
Any help would greatly be appreciated.