Really having trouble with INF's and WFP

Could someone please offer suggestions. I keep getting “The
system cannot find the file specified” error when I try to
add this driver.

It copies the driver just fine and it’s the only file being
copied yet I still get this error.

[Version]
;Class=HIDClass
;ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}

Signature=“$CHICAGO$”
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%VENDOR%
DriverVer=08/06/1999,5.00.2000.1
;CatalogFile=fake.cat
LayoutFile=layout.inf

[SourceDisksNames]
99=%DiskId%,
;
[SourceDisksFiles]
joystick.sys = 99

[DestinationDirs]
CopyFilesSYS = 12
DefaultDestDir = 12
CopyFilesDLL = 11

;[ControlFlags]
;ExcludeFromSelect = GamePort\VID_045E&PID_01FF

[Manufacturer]
%VENDOR%=Vendor

[Vendor]
%Joystick% = Joystick.Inst, GamePort\VID_045E&PID_01FF

[Joystick.Inst]
CopyFiles = CopyFilesSYS, CopyFilesDLL
AddReg = Joystick.AddReg, AddReg.Vendor_Driver

[Joystick.Inst.NT]
CopyFiles = CopyFilesSYS, CopyFilesDLL
AddReg = Joystick.AddReg

[Joystick.AddReg]
HKLM,%KEY_OEM%\VID_045E&PID_01FF,OEMName,%Joystick%
HKLM,%KEY_OEM%\VID_045E&PID_01FF,OEMData,1, 0, 0, 0, 0, 2, 0, 0, 0
HKLM,%KEY_OEM%\VID_045E&PID_01FF,OEMHardwareID,“GamePort\VID_045E&PID_01FF”

[Joystick.Inst.NT.Services]
AddService = VendorJoystickEnabler,0x00000002,Vendor_Service_Inst

[CopyFilesSYS]
joystick.sys
;HidClass.sys
;HidParse.sys

[CopyFilesDLL]
;Hid.dll

[AddReg.Vendor_Driver]
HKR,DevLoader,*ntkern
HKR,NTMPDriver,“joystick.sys”

[Vendor_Service_Inst]
DisplayName = %SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
ServiceBinary = C:\WINNT\system32\drivers\joystick.sys
LoadOrderGroup = Extended Base

[Strings]
; non localized strings
KEY_OEM=“SYSTEM\CurrentControlSet\Control\MediaProperties\PrivateProperties\Joystick\OEM”

;localized strings
VENDOR = “Acme”
SvcDesc = “Acme Game Device Driver”
Joystick = “Acme Joystick”
DiskId = “Acme Joystick Installation and Drivers Disk”

Inf files are the pits, eh? You did turn on verbose setup logging, right?

[Version]
;Class=HIDClass
;ClassGuid={745a17a0-74d3-11d0-b6fe-00a0c90f57da}

Signature=“$CHICAGO$”
Class=Media
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%VENDOR%
DriverVer=08/06/1999,5.00.2000.1
;CatalogFile=fake.cat
LayoutFile=layout.inf
^^^^^^^^^^^^^^^^^^^^^^^^^ this is an error - you don’t use layout files,
microsoft does

[Vendor_Service_Inst]
DisplayName = %SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 0 ; SERVICE_ERROR_IGNORE
ServiceBinary = C:\WINNT\system32\drivers\joystick.sys
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This should be ServiceBinary = %12%\joystick.sys

Mark Roddy
xxxxx@hollistech.com
www.hollistech.com
WindowsNT Windows 2000 Consulting Services

Thanks for your reply.

Inf files are the pits, eh? You did turn on verbose setup logging, right?

Your telling me. I could have created an install program in
about 15 minutes.

> LayoutFile=layout.inf
^^^^^^^^^^^^^^^^^^^^^^^^^ this is an error - you don’t use layout files,
microsoft does

I know I know. I have commented it in and out and it doesn’t
make a difference as to my problem. I’m installing the hidgame
example. It would be nice if the inf files in the ddk worked.

> ServiceBinary = C:\WINNT\system32\drivers\joystick.sys
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This should be ServiceBinary = %12%\joystick.sys

It was, I just did that to just to check it and didn’t change
it back.

LogLevel=0xFFFF
setuplog.txt remains empty.

I have also run chkinf and get no error or warnings and I
still get the complaint about it not being able to find
the specified file.