阅读:682回复:1
驱动安装问题
我正在编写一个USB驱动程序(win2000下),在一部分机器上能识别并安装上,但在有几台机器上(特别是几台笔记本电脑)死活装不上。系统根本不认驱动程序或认为我的驱动程序没有系统自带的好(usb.inf)。 我用SOFTICE跟踪发现系统没有调用驱动文件。不知如何解决?
|
|
沙发#
发布于:2003-05-08 16:29
下面是我的INF文件(请指教)
; Copyright (c) 1998 Microsoft Corporation [Version] DriverVer=09/22/1999,5.0.2072.0 Signature=\"$Windows NT$\" Class=SmartCardReader ClassGuid={50DD5230-BA8A-11D1-BF5D-0000F805F530} Provider=%shhic% [ControlFlags] ; Prevent legacy install for PnP readers ExcludeFromSelect=USB\\Vid_4242&Pid_4201 ; ================= Class section ===================== [ClassInstall32] Addreg=SmartCardReaderClassReg [SmartCardReaderClassReg] HKR,,,0,%ClassName% HKR,,Icon,,-25 HKLM,\"\\Software\\Microsoft\\Cryptography\\Calais\\Readers\",,, [Manufacturer] %SHHIC%=SHHIC ; ================= SHHIC readers ===================== [SHHIC] ; DisplayName Section DeviceId ; ----------- ------- -------- %SHHICKEY.DeviceDesc% = SHHICKEY.Install, USB\\Vid_4242&Pid_4201 [SHHICKEY.Install.NT] AddReg = SHHICKEY.Install.AddReg CopyFiles = SHHICKEY.Install.CopyFiles [SHHICKEY.Install.AddReg] HKR,, AdapterType, 0, \"0100\" [SHHICKEY.Install.CopyFiles] usbdriver.sys,,,2 [SHHICKEY.Install.NT.Services] AddService = SHHICKEY, 2, SHHICKEY.Service, SHHICKEY.EventLog [SHHICKEY.Service] DisplayName = %SHHICKEY.DeviceDesc% ServiceType = 1 ;%SERVICE_KERNEL_DRIVER% StartType = 3 ;%SERVICE_AUTO_START% ErrorControl = 1 ;%SERVICE_ERROR_NORMAL% ServiceBinary = %12%\\usbdriver.sys [SHHICKEY.EventLog] AddReg = SHHICKEY.AddEventLog.reg [SHHICKEY.AddEventLog.reg] HKR,, EventMessageFile, 0x00020000, \"%%SystemRoot%%\\System32\\drivers\\usbdriver.sys\" HKR,, TypesSupported, 0x00010001, 7 [DestinationDirs] DefaultDestDir = 12 SHHICKEY.Install.CopyFiles = 12 [SourceDisksNames] 1 = %InstallDisk%,usbdriver.sys,, [SourceDisksFiles] usbdriver.sys = 1 ; ================= Strings ===================== [Strings] Msft = \"Microsoft\" SHHIC = \"SHHIC\" SHHICKEY.DeviceDesc = \"SHHIC USB Smart Card Reader\" ClassName = \"Smart Card Readers\" InstallDisk = \"SHHIC USB Installation Disk\" |
|