Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

inf2cat for Win10 driver signing

I am using Microsoft's usbser.sys driver to communicate with custom hardware using a serial interface emulation via USB.

Since Win 8.1 I have to sign the driver. I the process, I used this command:

Inf2Cat /driver:"c:\path_to_driver" /os:8_X64,8_X86,Server8_X64,Server2008R2_X64,7_X64,7_X86,Server2008_X64,Server2008_X86,Vista_X64,Vista_X86,Server2003_X64,Server2003_X86,XP_X64,XP_X86,2000

Everything worked great. However, things do not work under Windows 10.

I get: "Adding the driver package failed: Invalid INF passed as parameter. (...) Driver pre-installation has failed with error #2 ()"

I think that I need to add Windows 10 to the list of supported os's. How can I do this? Windows10 is not a valid value.

I guess that I will have to install a more up to date version of Inf2Cat. Does anybody know where I can find one that supports Windows10? Or is there a different way to create cat files from inf files for Windows 10?

I installed WindowsKits8.1 under Win10, but there is no Inf2Cat.exe file. There is a makecat.exe file however. Is this the way to go? Where do I get a .cdf-file for Microsoft's usbser.sys driver?

like image 542
cokron Avatar asked Dec 01 '15 18:12

cokron


People also ask

Where can I find Inf2Cat?

The Inf2Cat tool is located in the Program Files\Windows Kits\8.0\bin\x86 or Program Files (x86)\Windows Kits\8.0\bin\x86 folder of the WDK.

How do I get a Microsoft driver signed?

In order to sign a driver, a certificate is required. You can create your own certificate to sign your driver with during development and testing. However, for a public release you must sign your driver with a certificate issued by a trusted root authority.

What is Windows INF folder?

A setup information (INF) file is a text file in a driver package that contains all of the information that device installation components use to install a driver package on a device. Windows uses INF files to install the following components for a device: One or more drivers that support the device.

What does it mean if a driver is signed?

Driver signing associates a digital signature with a driver package. Windows device installation uses digital signatures to verify the integrity of driver packages and to verify the identity of the vendor (software publisher) who provides the driver packages.


2 Answers

Ok, this is me answering my own question:

I simply looked in the wrong folder. The inf2cat is still available for Windows 10.

I now do

cd "c:\Program Files (x86)\Windows Kits\10\bin\x86" Inf2Cat.exe /driver:"c:\path\to\driver" /os:8_X64,8_X86,Server8_X64,Server2008R2_X64,7_X64,7_X86,Server2008_X64,Server2008_X86,Vista_X64,Vista_X86,Server2003_X64,Server2003_X86,XP_X64,XP_X86,2000,10_X86,10_X64,Server10_X64

Please note that you cannot specify the path+filename of your *.inf file, but you need to specify the directory path only. That's the /driver:"c:\path\to\driver" above, where driver is a directory and not and .inf file.

like image 138
cokron Avatar answered Sep 24 '22 13:09

cokron


Simply You must download an Windows Driver Kit(WDK) Download WDK

like image 36
Bassam Najeeb Avatar answered Sep 22 '22 13:09

Bassam Najeeb