Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Install Driver with a cat file?

I have kernel driver. When installing on 32 bit systems and Windows XP and below, I had no problem and used SetupCopyOEMInf, but 64 bit drivers are required to be signed. I have signed it and I need to have a cat file with the driver copied somewhere on the computer, and this method of install doesn't work. How should I install it?

EDIT: Clarified the question.

like image 590
SurDin Avatar asked Apr 12 '11 07:04

SurDin


People also ask

How do I install cat files?

Download CAT for Windows version 4. Using My Computer or Explorer locate this file and double click to unzip into the folder installcat on your hard drive. This will create the setup files required for the installation. Step 2: Using My Computer or Explorer, locate and open the above folder installcat.

How do I manually install a driver?

In the search box on the taskbar, enter device manager, then select Device Manager. Right-click (or press and hold) the name of the device, and then select Uninstall. Restart your PC. Windows will attempt to reinstall the driver.

What is a driver Cat file?

A digitally-signed catalog file (. cat) can be used as a digital signature for an arbitrary collection of files. A catalog file contains a collection of cryptographic hashes, or thumbprints. Each thumbprint corresponds to a file that is included in the collection.


2 Answers

In Windows Vista and Windows 7 there a new utility for handling drivers setup call PnPUtil. It handles exactly this kind of work. Just copy all your driver relevant files(*.inf, *.cat, *.sys) to a directory on the target computer and use PnPUtil -i -a <InfName>.inf

Note: You will need to be in an administrator context to successfully use this tool.

like image 163
SurDin Avatar answered Oct 10 '22 12:10

SurDin


You need to get an Authenticode signature, create a catalog file, and sign it with that. Microsoft decided that, for 64-bit systems, it will require the driver to come untampered from the vendor, by checking it signature.

(Note: This is not the same as WHQL, which tests the quality of the driver. Authenticode merely indicates that the driver hasn't been tampered with by some malicious user or virus; it doesn't say anything about what the driver does, so it's a relatively easy -- although pricey -- signature to obtain.)

Another solution is test-signing, if you don't plan on redistributing your program. https://technet.microsoft.com/library/dd919230.aspx

like image 36
user541686 Avatar answered Oct 10 '22 10:10

user541686