Inf2Cat 建立CAT檔案

來源:互聯網
上載者:User

http://msdn.microsoft.com/en-us/library/windows/hardware/ff547089(v=vs.85).aspx

Inf2Cat4 out of 15 rated this helpful
- Rate this topic

Inf2Cat (Inf2Cat.exe) is a command-line tool that determines whether a
driver package's INF file can be digitally-signed for a specified list of Windows versions. If so, Inf2Cat generates the unsigned

catalog files that apply to the specified Windows versions.

Copy
    Inf2Cat /driver:    PackagePath     /os:    WindowsVersionList [/nocat] [/verbose] [/?] [other switches]
Switches and Arguments

/driver: PackagePath

Specifies the path to the directory that contains the INF files for driver packages. If the specified directory contains INF files for multiple driver packages, Inf2Cat will create catalog files for each driver package.

Note  You can use the /drv: switch in place of the
/driver: switch.

/nocat

Configures Inf2Cat to verify that the
driver package complies with the signing requirements for the specified Windows versions, but not to generate a catalog files.

/os: WindowsVersionList

Configures Inf2Cat to verify that a
driver package's INF file complies with the signing requirements for the Windows versions that are specified by
WindowsVersionList. WindowsVersionList is a comma-separated list that includes one or more of the following version identifiers.

Windows version Version identifier

Windows 8 x64 Edition

8_X64

Windows 8 x86 Edition

8_X86

Windows Server 2012 Server8_X64

Windows Server 2008 R2 x64 Edition

Server2008R2_X64

Windows Server 2008 R2 Itanium Edition

Server2008R2_IA64

Windows 7 x64 Edition

7_X64

Windows 7 x86 Edition

7_X86

Windows Server 2008 x64 Edition

Server2008_X64

Windows Server 2008 Itanium Edition

Server2008_IA64

Windows Server 2008 x86 Edition

Server2008_X86

Windows Vista x64 Edition

Vista_X64

Windows Vista x86 Edition

Vista_X86

Windows Server 2003 x64 Edition

Server2003_X64

Windows Server 2003 Itanium Edition

Server2003_IA64

Windows Server 2003 x86 Edition

Server2003_X86

Windows XP x64 Edition

XP_X64

Windows XP x86 Edition

XP_X86

Windows 2000

2000

 

Note  Starting with Windows Server 2008 R2, Windows server operating systems will no longer support x86-based platforms.

Inf2Cat ignores the case of the alphabetic characters of the version identifier strings. For example, vista_x64 and Vista_X64 are both valid identifiers for Windows Vista x64 Edition.

/verbose

Configures Inf2Cat to display detailed information in a command window.

/?

Configures Inf2Cat to display help information in a command window.

other switches

Configures Inf2Cat to add a DRM level catalog attribute or a PE catalog attribute to files, or to add page hashes to files. For more information, use the
/? switch.

Comments

The Inf2Cat tool replaces the Signability tool that was included in versions of the WDK prior to Windows Vista.

To use Inf2Cat, you must be a member of the Administrators group on the system.

The Inf2Cat tool checks
driver package's INF files for structural errors and verifies that a driver package can be digitally-signed. A driver package can be signed only if all of the files that are referenced in an INF file are present and the source files are in the correct location.
If an INF file cannot be signed or if it contains structural errors, the driver package might not be installed correctly or might incorrectly display a driver signing warning dialog box during installation.

Inf2Cat generates a
catalog file only if the catalog file is specified in the driver package's INF file and the catalog file applies to one or more of the specified Windows versions. If the

INF Version section of an INF file supplies only a
CatalogFile=filename.cat directive, that catalog file applies to the entire driver package. To support

cross-platform installations, the INF file should include CatalogFile.PlatformExtension=unique-filename.cat directives.

For more information about signing a driver package, see
Driver Signing and
Device and Driver Installation Fundamental Topics.

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.

Examples

In the following example, c:\MyDriver contains a
driver package whose INF file is MyInfFile.inf and the INF Version section in the INF file includes only the following
CatalogFile directive:

Copy
[Version]. . .CatalogFile=MyCatalogFile.cat. . .

For this example, the following Inf2Cat command would verify whether the driver package can be signed for Windows 2000 and for the x86 versions of Windows Vista, Windows Server 2003, and Windows XP. If the package can be signed for these versions, Inf2Cat
would create the unsigned catalog file MyCatalogFile.cat.

Copy
Inf2Cat /driver:C:\MyDriver /os:2000,XP_X86,Server2003_X86,Vista_X86

In the following example, c:\MyDriver contains a
driver package whose INF file is MyInfFile.inf and the INF Version section in the INF file includes only the following two
CatalogFile directives with platform extensions:

Copy
[Version]. . .CatalogFile.ntx86=MyCatalogFileX86.catCatalogFile.ntamd64=MyCatalogFileX64.cat. . .

For this example, the following Inf2Cat command would verify whether the driver package can be signed for Windows 2000 and the x86 versions of Windows Vista, Windows Server 2003, and Windows XP. In addition, the command would verify whether the driver package
can be signed for the x64 editions of Windows Vista, Windows Server 2003, and Windows XP. If the package can be signed for all of these versions, Inf2Cat will create the unsigned catalog files MyCatalogFileX86.cat and MyCatalogFileX64.cat.

Copy
Inf2Cat /driver:C:\MyDriver /os:2000,XP_X86,XP_X64,Server2003_X86,Server2003_X64,Vista_X86,Vista_X64

For more information about how to use Inf2Cat to create a catalog file, see
Creating a Catalog File for a PnP Driver Package.

 

 

Send
comments about this topic to Microsoft

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.