阅读:2000回复:5
关于安装驱动时提示缺少文件的问题,不知道inf文件出了什么问题?(20分)
我在 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-25 22:39
;这里的原文是 %DeviceDesc%=Ftm230_DDI, USBVID_FFFF&PID_0001
%DeviceDesc%=Ftm230_DDI.NT, USBVID_FFFF&PID_0001 不修改这里看看,应该可以 |
|
|
板凳#
发布于:2004-10-27 20:53
这样也不行啊!以前装过了。
|
|
地板#
发布于:2004-11-05 20:18
[Ftm230_DDI.NT]
CopyFiles=Ftm230_Files_Driver AddReg=Ftm230_NT_AddReg 改成 [Ftm230_DDI.NT] CopyFiles=Ftm230_Files_Driver,Ftm230_INF AddReg=Ftm230_NT_AddReg 试试! 也可以注释掉你在下面两节中添加的项试试: [SourceDisksFiles] Ftm230.sys = 1 ;Ftm230.inf = 1;这里是我添加的 [DestinationDirs] Ftm230_Files_Driver = 10,System32Drivers ;Ftm230_INF = 10,INF;这里是我添加的 我估计两种改法都可以解决问题,但最好用第二种改法。 |
|
|
地下室#
发布于:2004-11-22 13:15
多谢两位帮助,不过问题还是没有解决
|
|
5楼#
发布于:2004-11-28 21:50
问题没解决还得分,惭愧!
|
|
|