Inf2Cat error 22.9.1

Hey everyone… So I’m trying something new: creating a cat file for my driver and I’m getting error 22.9.1. In the process of debugging it I’ve been able to reproduce the problem using nothing but the WDK. These are my steps:

  1. Install WDK 7600.16385.1
  2. Start the Windows 7 x64 Free Build Environment from the Start menu
  3. Go to C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter
  4. build -cZ
  5. go to C:\WinDDK\7600.16385.1\bin\selfsign
  6. Inf2Cat.exe /driver:C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter /os:7_X64

This fails with “22.9.1: %drivername%.sys in [nullfilter.driverfiles] of \nullfilter.inf is missing or cannot be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.”

So, does anybody know what do I need to do ? I’ve tried replacing various combinations of %drivername% with nullfilter and still no luck…

This is what the relevant sections of the INF look like (there is no CopyFiles section):

[NullFilter.DriverFiles]
%DriverName%.sys

[SourceDisksFiles]
nullfilter.sys = 1,

[SourceDisksNames]
1 = %DiskId1%,

[Strings]
ServiceName = “NullFilter”
DriverName = “NullFilter”
DiskId1 = “NullFilter Device Installation Disk”

Thanks,
Alex

xxxxx@gmail.com wrote:

Hey everyone… So I’m trying something new: creating a cat file for my driver and I’m getting error 22.9.1. In the process of debugging it I’ve been able to reproduce the problem using nothing but the WDK. These are my steps:

  1. Install WDK 7600.16385.1
  2. Start the Windows 7 x64 Free Build Environment from the Start menu
  3. Go to C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter
  4. build -cZ
  5. go to C:\WinDDK\7600.16385.1\bin\selfsign
  6. Inf2Cat.exe /driver:C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter /os:7_X64

This fails with “22.9.1: %drivername%.sys in [nullfilter.driverfiles] of \nullfilter.inf is missing or cannot be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.”

So, does anybody know what do I need to do ?

The error is exactly right: “nullfilter.sys” is not present in the
location where the INF says it should be, which is in the same directory
as the INF. Instead, it is in objfre_wlh_amd64\amd64.

You need to copy the INF and the SYS into a single directory, and run
INF2CAT there. The build directories are not “package-ready”, unlike
the later WDKs.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Thanks Tim! That worked like a charm.

Didn’t realize the package-readiness was the problem :).

Thanks,
Alex

On Tue, Sep 29, 2015 at 3:52 PM, Tim Roberts wrote:

> xxxxx@gmail.com wrote:
> > Hey everyone… So I’m trying something new: creating a cat file for my
> driver and I’m getting error 22.9.1. In the process of debugging it I’ve
> been able to reproduce the problem using nothing but the WDK. These are my
> steps:
> > 1. Install WDK 7600.16385.1
> > 2. Start the Windows 7 x64 Free Build Environment from the Start menu
> > 3. Go to C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter
> > 4. build -cZ
> > 5. go to C:\WinDDK\7600.16385.1\bin\selfsign
> > 6. Inf2Cat.exe
> /driver:C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter /os:7_X64
> >
> > This fails with “22.9.1: %drivername%.sys in [nullfilter.driverfiles] of
> \nullfilter.inf is missing or cannot be decompressed from source media.
> Please verify all path values specified in SourceDisksNames,
> SouceDisksFiles, and CopyFiles sections resolve to the actual location of
> the file, and are expressed in terms relative to the location of the inf.”
> >
> > So, does anybody know what do I need to do ?
>
> The error is exactly right: “nullfilter.sys” is not present in the
> location where the INF says it should be, which is in the same directory
> as the INF. Instead, it is in objfre_wlh_amd64\amd64.
>
> You need to copy the INF and the SYS into a single directory, and run
> INF2CAT there. The build directories are not “package-ready”, unlike
> the later WDKs.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Hey everyone… So I’m trying something new: creating a cat file for my driver and I’m getting error 22.9.1. In the process of debugging it I’ve been able to reproduce the problem using nothing but the WDK. These are my steps:

  1. Install WDK 7600.16385.1
  2. Start the Windows 7 x64 Free Build Environment from the Start menu
  3. Go to C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter
  4. build -cZ
  5. go to C:\WinDDK\7600.16385.1\bin\selfsign
  6. Inf2Cat.exe /driver:C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter /os:7_X64

This fails with “22.9.1: %drivername%.sys in [nullfilter.driverfiles] of \nullfilter.inf is missing or cannot be decompressed from source media. Please verify all path values specified in SourceDisksNames, SouceDisksFiles, and CopyFiles sections resolve to the actual location of the file, and are expressed in terms relative to the location of the inf.”

So, does anybody know what do I need to do ? I’ve tried replacing various combinations of %drivername% with nullfilter and still no luck…

This is what the relevant sections of the INF look like (there is no CopyFiles section):

[NullFilter.DriverFiles]
%DriverName%.sys

[SourceDisksFiles]
nullfilter.sys = 1,

[SourceDisksNames]
1 = %DiskId1%,

[Strings]
ServiceName = “NullFilter”
DriverName = “NullFilter”
DiskId1 = “NullFilter Device Installation Disk”

Thanks,
Alex

copy nullfilter.sys to root directory
you will get a 22.9.7 now changge the Driverver date
nullfiltercat must be generated

On 10/2/15, xxxxx@gmail.com wrote:
> Hey everyone… So I’m trying something new: creating a cat file for my
> driver and I’m getting error 22.9.1. In the process of debugging it I’ve
> been able to reproduce the problem using nothing but the WDK. These are my
> steps:
> 1. Install WDK 7600.16385.1
> 2. Start the Windows 7 x64 Free Build Environment from the Start menu
> 3. Go to C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter
> 4. build -cZ
> 5. go to C:\WinDDK\7600.16385.1\bin\selfsign
> 6. Inf2Cat.exe
> /driver:C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter /os:7_X64
>
> This fails with “22.9.1: %drivername%.sys in [nullfilter.driverfiles] of
> \nullfilter.inf is missing or cannot be decompressed from source media.
> Please verify all path values specified in SourceDisksNames,
> SouceDisksFiles, and CopyFiles sections resolve to the actual location of
> the file, and are expressed in terms relative to the location of the inf.”
>
> So, does anybody know what do I need to do ? I’ve tried replacing various
> combinations of %drivername% with nullfilter and still no luck…
>
> This is what the relevant sections of the INF look like (there is no
> CopyFiles section):
>
> [NullFilter.DriverFiles]
> %DriverName%.sys
>
> [SourceDisksFiles]
> nullfilter.sys = 1,
>
> [SourceDisksNames]
> 1 = %DiskId1%,
>
> [Strings]
> ServiceName = “NullFilter”
> DriverName = “NullFilter”
> DiskId1 = “NullFilter Device Installation Disk”
>
>
> Thanks,
> Alex
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter>build -cz
BUILD: Compile and Link for AMD64
BUILD: Start time: Fri Oct 02 02:35:40 2015
BUILD: Examining c:\winddk\7600.16385.1\src\filesys\minifilter\nullfilter direct
ory for files to compile.
c:\winddk\7600.16385.1\src\filesys\minifilter\nullfilter Invalidating OACR w
arning log for ‘root:amd64fre’
BUILD: Compiling and Linking c:\winddk\7600.16385.1\src\filesys\minifilter\nullf
ilter directory
Configuring OACR for ‘root:amd64fre’ -
Compiling resources - nullfilter.rc
Compiling - nullfilter.c
Linking Executable - objfre_win7_amd64\amd64\nullfilter.sys
BUILD: Finish time: Fri Oct 02 02:35:41 2015
BUILD: Done

4 files compiled
1 executable built

C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter>md temp

C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter>copy
nullFilter.inf temp.
1 file(s) copied.

C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter>copy objfre_win7_amd64<br>amd64\nullFilter.sys temp.
1 file(s) copied.

C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter>…......\bin\selfsig
n\Inf2Cat.exe /driver:“.\temp” /os:7_x64

Signability test complete.

Errors:
None

Warnings:
None

Catalog generation complete.
C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter\temp\nullfilter.cat

C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter>

On 10/2/15, raj r wrote:
> copy nullfilter.sys to root directory
> you will get a 22.9.7 now changge the Driverver date
> nullfiltercat must be generated
>
> On 10/2/15, xxxxx@gmail.com
> wrote:
>> Hey everyone… So I’m trying something new: creating a cat file for my
>> driver and I’m getting error 22.9.1. In the process of debugging it I’ve
>> been able to reproduce the problem using nothing but the WDK. These are
>> my
>> steps:
>> 1. Install WDK 7600.16385.1
>> 2. Start the Windows 7 x64 Free Build Environment from the Start menu
>> 3. Go to C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter
>> 4. build -cZ
>> 5. go to C:\WinDDK\7600.16385.1\bin\selfsign
>> 6. Inf2Cat.exe
>> /driver:C:\WinDDK\7600.16385.1\src\filesys\miniFilter\nullFilter
>> /os:7_X64
>>
>> This fails with “22.9.1: %drivername%.sys in [nullfilter.driverfiles] of
>> \nullfilter.inf is missing or cannot be decompressed from source media.
>> Please verify all path values specified in SourceDisksNames,
>> SouceDisksFiles, and CopyFiles sections resolve to the actual location of
>> the file, and are expressed in terms relative to the location of the
>> inf.”
>>
>> So, does anybody know what do I need to do ? I’ve tried replacing various
>> combinations of %drivername% with nullfilter and still no luck…
>>
>> This is what the relevant sections of the INF look like (there is no
>> CopyFiles section):
>>
>> [NullFilter.DriverFiles]
>> %DriverName%.sys
>>
>> [SourceDisksFiles]
>> nullfilter.sys = 1,
>>
>> [SourceDisksNames]
>> 1 = %DiskId1%,
>>
>> [Strings]
>> ServiceName = “NullFilter”
>> DriverName = “NullFilter”
>> DiskId1 = “NullFilter Device Installation Disk”
>>
>>
>> Thanks,
>> Alex
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>

xxxxx@gmail.com wrote:

Hey everyone… So I’m trying something new: creating a cat file for my driver and I’m getting error 22.9.1. In the process of debugging it I’ve been able to reproduce the problem using nothing but the WDK.

You asked THIS EXACT QUESTION two days ago, and I gave you the correct
answer 90 minutes later. Was there something about that you didn’t
understand?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

Oh sorry, for some reason Gmail decided to resend the email… I then got an
NTDEV reply saying “your message got rejected since it looks exactly the
same as the one you sent”… I guess it somehow gmail tries once more…
Sorry about this everyone!

Tim, your answer was exactly what I needed! Raj, thanks for your answers
and for looking into the problem!

Again, sorry for the confusion :(…

On Thu, Oct 1, 2015 at 2:45 PM, Tim Roberts wrote:

> xxxxx@gmail.com wrote:
> > Hey everyone… So I’m trying something new: creating a cat file for my
> driver and I’m getting error 22.9.1. In the process of debugging it I’ve
> been able to reproduce the problem using nothing but the WDK.
>
> You asked THIS EXACT QUESTION two days ago, and I gave you the correct
> answer 90 minutes later. Was there something about that you didn’t
> understand?
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>
> OSR is HIRING!! See http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Turns out it wasn’t gmail but rather the online forum interface… I kept
the tab open and then when Chrome restarted and refreshed the tab I guess
it submitted it again…

On Fri, Oct 2, 2015 at 9:01 AM, Alex Carp
wrote:

> Oh sorry, for some reason Gmail decided to resend the email… I then got
> an NTDEV reply saying “your message got rejected since it looks exactly the
> same as the one you sent”… I guess it somehow gmail tries once more…
> Sorry about this everyone!
>
> Tim, your answer was exactly what I needed! Raj, thanks for your answers
> and for looking into the problem!
>
> Again, sorry for the confusion :(…
>
> On Thu, Oct 1, 2015 at 2:45 PM, Tim Roberts wrote:
>
>> xxxxx@gmail.com wrote:
>> > Hey everyone… So I’m trying something new: creating a cat file for my
>> driver and I’m getting error 22.9.1. In the process of debugging it I’ve
>> been able to reproduce the problem using nothing but the WDK.
>>
>> You asked THIS EXACT QUESTION two days ago, and I gave you the correct
>> answer 90 minutes later. Was there something about that you didn’t
>> understand?
>>
>> –
>> Tim Roberts, xxxxx@probo.com
>> Providenza & Boekelheide, Inc.
>>
>>
>> —
>> NTDEV is sponsored by OSR
>>
>> Visit the list at: http://www.osronline.com/showlists.cfm?list=ntdev
>>
>> OSR is HIRING!! See http://www.osr.com/careers
>>
>> For our schedule of WDF, WDM, debugging and other seminars visit:
>> http://www.osr.com/seminars
>>
>> To unsubscribe, visit the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>>
>
>