windows 如何使用 cat 文件安装驱动程序?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5631789/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 08:16:28  来源:igfitidea点击:

How to Install Driver with a cat file?

windows64-bitdevice-driversigned

提问by SurDin

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?

我有内核驱动程序。在 32 位系统和 Windows XP 及以下系统上安装时,我没有问题并使用 SetupCopyOEMInf,但需要签名 64 位驱动程序。我已经签署了它,我需要在计算机上的某个位置复制一个带有驱动程序的 cat 文件,但这种安装方法不起作用。我应该如何安装它?

EDIT: Clarified the question.

编辑:澄清了这个问题。

回答by SurDin

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

在 Windows Vista 和 Windows 7 中,有一个用于处理驱动程序设置的新实用程序调用PnPUtil。它处理的正是这种工作。只需将所有驱动程序相关文件(*.inf、*.cat、*.sys)复制到目标计算机上的目录并使用PnPUtil -i -a <InfName>.inf

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

注意:您需要处于管理员环境中才能成功使用此工具。

回答by user541686

You need to get an Authenticodesignature, 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.

您需要获得一个Authenticode签名,创建一个目录文件,然后用它签名。Microsoft 决定,对于 64 位系统,它将要求驱动程序通过检查其签名来防止来自供应商的篡改。

(Note: This is notthe same as WHQL, which tests the qualityof 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.)

(注:这是一样的WHQL,测试的质量,驾驶员的验证码仅仅表明司机没有被某些恶意用户或病毒篡改;它不会说的司机做了什么事情,所以这是一个相对容易——虽然价格昂贵——获得签名。)

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

另一个解决方案是test-signing,如果您不打算重新分发您的程序。 https://technet.microsoft.com/library/dd919230.aspx