阅读:1046回复:3
关于安装驱动时提示缺少文件的问题,不知道inf文件出了什么问题?
我在 Win2K + sp4 系统中安装了 DS2.7、VC++ 6.0、Win2K DDK
使用 DS 生成一个 USB 驱动框架,所有编译到目前为止都很成功, 但是安装时系统提示没有找到文件!修改了几次但还是不知哪漏了。 下面是这个 INF 文件 ;; Ftm230.inf ;; ********* PLEASE READ *********** ;; The wizard cannot create exact INF files for all buses and device types. ;; You may have to make changes to this file in order to get your device to ;; install. In particular, hardware IDs and logical configurations require ;; intervention. ;; ;; The Windows DDK documentation contains an excellent INF reference. ;--------- Version Section --------------------------------------------------- [Version] Signature="$CHICAGO$" Provider=%ProviderName% ; If device fits one of the standard classes, use the name and GUID here, ; otherwise create your own device class and GUID as this example shows. Class=HIDClass ClassGUID={745a17a0-74d3-11d0-b6fe-00a0c90f57da} ;--------- SourceDiskNames and SourceDiskFiles Section ----------------------- ; These sections identify source disks and files for installation. They are ; shown here as an example, but commented out. [SourceDisksNames] 1 = "Phoke Install Disk",,0 [SourceDisksFiles] Ftm230.sys = 1 Ftm230.inf = 1;这里是我添加的 ;--------- ClassInstall/ClassInstall32 Section ------------------------------- ; Not necessary if using a standard class ; 9X Style [ClassInstall] Addreg=Class_AddReg ; NT Style [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,"-18" ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] Ftm230_Files_Driver = 10,System32Drivers Ftm230_INF = 10,INF;这里是我添加的 ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] ;这里的原文是 %DeviceDesc%=Ftm230_DDI, USBVID_FFFF&PID_0001 %DeviceDesc%=Ftm230_DDI.NT, USBVID_FFFF&PID_0001 ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [Ftm230_DDI] CopyFiles=Ftm230_Files_Driver AddReg=Ftm230_9X_AddReg [Ftm230_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,Ftm230.sys HKR, "Parameters", "BreakOnEntry", 0x00010001, 0 ; --------- Windows NT ----------------- [Ftm230_DDI.NT] CopyFiles=Ftm230_Files_Driver AddReg=Ftm230_NT_AddReg [Ftm230_DDI.NT.Services] Addservice = Ftm230, 0x00000002, Ftm230_AddService [Ftm230_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%System32DriversFtm230.sys [Ftm230_NT_AddReg] HKLM, "SystemCurrentControlSetServicesFtm230Parameters", "BreakOnEntry", 0x00010001, 0 ; --------- Files (common) ------------- [Ftm230_Files_Driver] Ftm230.sys ;这个是我添加的 [Ftm230_INF] Ftm230.inf ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName="Phoke" MfgName="Ftm230" DeviceDesc="Ftm230" DeviceClassName="HIDClass" SvcDesc="Ftm230R12" |
|
沙发#
发布于:2004-10-21 18:56
没有人要分吗?奇怪呢!!到别处去了
[编辑 - 10/21/04 by xx_focus] |
|
板凳#
发布于:2004-10-22 10:19
你用DriverMonitor启动驱动的吗?
|
|
|
地板#
发布于:2004-10-22 10:33
我去掉了分数居然还有还有人回答!不过没关系,只要解决了问题照样可以给分的 :D
我是用 DS 生成 USB 驱动后文件后就进行安装的。 在制作向导中除了添加几个读写通道外就没有做额外多余的,只是想测试一下,但安装时老是提示缺少文件或重新启动后提示没有为设备指定一个实例驱动程序。 望多多指教,问题解决一定给分! |
|