none
Driver Signing - inf2cat fails when package contains device metadata package RRS feed

  • Question

  • We are having trouble trying to sign a driver package that contains a device metadata package in the inf [SourceDisksFiles] section.

    INF file relevant portion:

    [SourceDisksFiles]
    file1.sys = 1,i386 ; actual name redacted
    file1.dll = 1,i386 ; actual name redacted
    a377ad72-f25d-45b9-88dc-022fc3d4909d.devicemetadata-ms= 1,Metadata, ;A metadata package file for EN-US
    

    When running inf2cat we get the following error (the file not found filename changes every run)

    M:\Temp>%DDK%\bin\selfsign\INF2CAT /driver:.\Test /verbose /os:XP_X86,XP_X64,Vista_X86,Vista_X64,7_X86,7_X64,8_X86,8_X64,10_X86,10_X64 Processing directory (M:\Temp\Test\) file (dpinst-amd64.exe) Processing directory (M:\Temp\Test\) file (dpinst-x86.exe) Processing directory (M:\Temp\Test\) file (dpinst.xml) Processing directory (M:\Temp\Test\) file (install.exe) Processing directory (M:\Temp\Test\) file (test_driver.inf) Processing directory (M:\Temp\Test\i386) file (file1.dll) Processing directory (M:\Temp\Test\i386) file (file1.sys) <other files="" from="" listing...="" removed=""> Processing directory (M:\Temp\Test\Metadata) file (a377ad72-f25d-45b9-88dc-022fc3d 4909d.devicemetadata-ms) Could not find file 'C:\Temp\WST\44959c23-453b-4e46-9439-c3db3c559ac2\023'. Signability test failed.</other>

    <other files="" from="" listing...="" removed="">It appears the inf2cat is trying to decompress the metadata package - indeed if I run inf2cat on just the metadata folder I get the same error.</other>

    <other files="" from="" listing...="" removed="">How do you generate a .cat file on a driver package that contains a metadata package?
    Anyway to tell inf2cat to treat the metadata file as a single blob and not look inside at the contents?</other>

    Tuesday, February 27, 2018 4:08 PM

All replies

  • Arghh - foiled by angle brackets. Should read:

    M:\Temp>%DDK%\bin\selfsign\INF2CAT /driver:.\Test /verbose /os:XP_X86,XP_X64,Vista_X86,Vista_X64,7_X86,7_X64,8_X86,8_X64,10_X86,10_X64
    Processing directory (M:\Temp\Test\) file (dpinst-amd64.exe)
    Processing directory (M:\Temp\Test\) file (dpinst-x86.exe)
    Processing directory (M:\Temp\Test\) file (dpinst.xml)
    Processing directory (M:\Temp\Test\) file (install.exe)
    Processing directory (M:\Temp\Test\) file (test_driver.inf)
    Processing directory (M:\Temp\Test\i386) file (file1.dll)
    Processing directory (M:\Temp\Test\i386) file (file1.sys)
    ___other files removed from listing...___
    Processing directory (M:\Temp\Test\Metadata) file (a377ad72-f25d-45b9-88dc-022fc3d
    4909d.devicemetadata-ms)
    
    Could not find file 'C:\Temp\WST\44959c23-453b-4e46-9439-c3db3c559ac2\023'.
    Signability test failed.
    

    It appears the inf2cat is trying to decompress the metadata package - indeed if I run inf2cat on just the metadata folder I get the same error.

    How do you generate a .cat file on a driver package that contains a metadata package?
    Anyway to tell inf2cat to treat the metadata file as a single blob and not look inside at the contents?

    Tuesday, February 27, 2018 4:14 PM