INF "system cannot find the file specified"

I have a driver and INF that is giving me an error on one of three systems
I have tested it on.

On two system, it installs from the INF properly. One one system, I get
the following output in my setupapi.log


Device install function: DIF_INSTALLINTERFACES.
Installing section <…>.NTx86.Interfaces from a:\netmy.inf.
Interfaces installed.
Device install function: DIF_INSTALLDEVICE.
Doing full install of …
An unsigned or incorrectly signed driver (a:\netmy.inf) was installed for
<…>. Error 0xe000022f: The third-party INF does not contain digital
signature information.
Device install finished with error Error 2: The system cannot find the file
specified.
Completed class-installer, error: Error 2: The system cannot find the file
specified.
Set selected driver.
Installing NULL driver for <…>.
Device install finished with error Error 2: The system cannot find the file
specified.

The driver binary was successfully copied into the drivers directory, but
there weren’t any registry changes made for the device. I checked the
security of the various registry keys to ensure that they are the same as
the other two enteries, but at this point, I am at a loss what could be
causing the error.

Any insight would be much appreciated,
Shaun

Some clarifications.

* All three systems are Windows 2000.
* It is an NDIS driver.
* All three installations were performed from the same distribution floppy.
* Chkinf reports zero warnings or errors for the INF.
* I did verify the class installer (netcfgx.dll) was present on the system
which is having problems.
* There are not any entries in the setuperr.log
* There are not any eventlog entries.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Shaun Ruffell
Sent: Friday, October 04, 2002 9:50 AM
To: NT Developers Interest List
Subject: [ntdev] INF “system cannot find the file specified”

I have a driver and INF that is giving me an error on one of three systems
I have tested it on.

On two system, it installs from the INF properly. One one system, I get
the following output in my setupapi.log


Device install function: DIF_INSTALLINTERFACES.
Installing section <…>.NTx86.Interfaces from a:\netmy.inf.
Interfaces installed.
Device install function: DIF_INSTALLDEVICE.
Doing full install of …
An unsigned or incorrectly signed driver (a:\netmy.inf) was installed for
<…>. Error 0xe000022f: The third-party INF does not contain digital
signature information.
Device install finished with error Error 2: The system cannot find the file
specified.
Completed class-installer, error: Error 2: The system cannot find the file
specified.
Set selected driver.
Installing NULL driver for <…>.
Device install finished with error Error 2: The system cannot find the file
specified.

The driver binary was successfully copied into the drivers directory, but
there weren’t any registry changes made for the device. I checked the
security of the various registry keys to ensure that they are the same as
the other two enteries, but at this point, I am at a loss what could be
causing the error.

Any insight would be much appreciated,
Shaun


You are currently subscribed to ntdev as: xxxxx@tenpennies.com
To unsubscribe send a blank email to %%email.unsub%%

Shaun,

you wrote on Friday, October 4, 2002, 18:50:13:

SR> Device install finished with error Error 2: The system cannot find
SR> the file specified.

Post your INF file. Also, I’ve seen this once with a NDIS miniport
before and the reason was that the “Config” registry value in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network was
corrupted. Deleting this value and restarting the system cured it.

Ralf.

Ralf,

I tried deleting the Network key, and it wasn’t recreated on reboot, and I
get the same results from the setupapi.log file.

Below is a slightly modified INF file.

Thank you for the suggestions,
Shaun

; Copyright (c) 2002 <…> Inc.
[version]
Signature = “$Windows NT$”
Class = Net
ClassGUID = {4d36e972-e325-11ce-bfc1-08002be10318}
Provider = %TheCompany%
CatalogFile = ndisdriver.cat
DriverVer = 10/3/2002, 1.0.0.2

[Manufacturer]
%TheCompany% = TheCompany

[TheCompany]
%TheDevice.DeviceDesc% = TheDevice.ndi, PCI\<…>

[ControlFlags]
ExcludeFromSelect = *

; Windows 2000 specific entry
[TheDevice.ndi.ntx86]
Characteristics = 0xa4
BusType = 5
AddReg = thedevice.reg
CopyFiles = TheDevice.CopyFiles

[TheDevice.ndi.ntx86.Services]
AddService = ndisdriver, 2, TheDevice.Service, common.EventLog

[thedevice.reg]
HKR, Ndi, Service, 0, “ndisdriver”

; use ndis5 as the upper bound because NT supports it
HKR, Ndi\Interfaces, UpperRange, 0, “ndis5”
HKR, Ndi\Interfaces, LowerRange, 0, “ethernet”

[TheDevice.Service]
DisplayName = %TheDevice.Service.DispName%
ServiceType = 1
StartType = 3
ErrorControl = 1
ServiceBinary = %12%\ndisdriver.sys
LoadOrderGroup = NDIS

[common.EventLog]
AddReg = common.AddEventLog.reg

[common.AddEventLog.reg]
HKR, EventMessageFile, 0x00020000,
%%SystemRoot%%\System32\netevent.dll;%%SystemRoot%%\System32\drivers\ndisdr
iver.sys
HKR, TypesSupported, 0x00010001, 7

[TheDevice.CopyFiles]
ndisdriver.sys,2

[SourceDisksNames]
1 = %DRIVER_DISK_1%

[SourceDisksFiles]
ndisdriver.sys = 1, ; on distribution disk 1

[DestinationDirs]
DefaultDestDir = 12
TheDevice.CopyFiles = 12

[Strings]
TheCompany = “The Company”

TheDevice.DeviceDesc = “The Device”

TheDevice.Service.DispName = “TheDevice”
DRIVER_DISK_1 = “TheDevice Driver Disk 1”

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Ralf Buschmann
Sent: Friday, October 04, 2002 10:32 AM
To: NT Developers Interest List
Subject: [ntdev] Re: INF “system cannot find the file specified”

Shaun,

you wrote on Friday, October 4, 2002, 18:50:13:

SR> Device install finished with error Error 2: The system cannot find
SR> the file specified.

Post your INF file. Also, I’ve seen this once with a NDIS miniport
before and the reason was that the “Config” registry value in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network was
corrupted. Deleting this value and restarting the system cured it.

Ralf.


You are currently subscribed to ntdev as: xxxxx@tenpennies.com
To unsubscribe send a blank email to %%email.unsub%%

Shaun,

you wrote on Saturday, October 5, 2002, 00:07:45:

SR> I tried deleting the Network key, and it wasn’t recreated on reboot, and I
SR> get the same results from the setupapi.log file.

SR> Below is a slightly modified INF file.

[snip]

SR> [TheDevice.ndi.ntx86.Services]
SR> AddService = ndisdriver, 2, TheDevice.Service, common.EventLog

SR> [thedevice.reg]
SR> HKR, Ndi, Service, 0, “ndisdriver”

Hmm, the INF seems to be correct. The only potential problem I can see
is that the file name “ndisdriver.sys” is not a 8.3 style file name (if
your driver is actually named like this). Try using a 8.3 file name.

Ralf.