阅读:1626回复:1
INF问题
大家好!
我的INF文件有点问题能帮我看看吗? 我的打开发环境WIN2000+SP4,VC6.0,W2KDDK。我做的是PCI功能驱动,安装时出现问题:安装时点从“磁盘安转”,找到我的INF文件Pci9054.inf,提示“选择的位置不包含有关硬件的信息”,确定,再次点“浏览”,再次找到Pci9054.inf文件,“确定”,然后却能安装通过。 为什么第一次找到INF文件不能安装,第二次却能装。INF文件如下,谢谢帮忙看看! ;=========================================================== ; Installation file for pci9054 driver ; Generated by WWM ; Copyright (C) 2005 by CDYW Technology ; All rights reserved ;=========================================================== [Version] Signature = $CHICAGO$ Class = PCI9054 Board ClassGuid = {A1437295-5E2F-44cb-914A-D3C8253FB665} Provider = %cdyw% DriverVer = 04/07/2005, 1.00.0.0 ;--------- ClassInstall/ClassInstall32 Section ------------------------------- ; 9X Style [ClassInstall] Addreg=Class_AddReg ; NT Style [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,\"PCI9054 驱动\" HKR,,Icon,,\"-5\" ;----------------------------------------------------------- ; Driver information ;----------------------------------------------------------- [Manufacturer] %MFGNAME%=DeviceList [DeviceList] \"Get CT Status Board\"=DDInstall_9054,PCI\\VEN_10b5&DEV_5406 ;----------------------------------------------------------- ; General installation section ;----------------------------------------------------------- [CopyFiles_9054] Pci9054.sys,,,2 ;----------------------------------------------------------- ; Windows 2000 installation section ;----------------------------------------------------------- [DDInstall_9054.NT] AddReg = AddRegistry_NT_9054 CopyFiles = CopyFiles_9054 [DDInstall_9054.NT.Services] AddService = Pci9054, 0x00000002, Service_Inst_9054, EventLog_Inst_9054 [AddRegistry_NT_9054] HKLM,System\\CurrentControlSet\\Services\\Pci9054,DmaBufferSize,0x00010003,0x10000 HKLM,System\\CurrentControlSet\\Services\\Pci9054,Pci9054CardNum,0x00010003,0x00001 [Service_Inst_9054] ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 0 ; SERVICE_ERROR_IGNORE ServiceBinary = %10%\\System32\\Drivers\\Pci9054.sys ;----------------------------------------------------------- ; Windows 98 installation section ;----------------------------------------------------------- [DDInstall_9054] AddReg = AddRegistry_9054 CopyFiles = CopyFiles_9054 [AddRegistry_9054] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,Pci9054.sys HKR,,ErrorLogLevel,0x00010003,2 HKR,,DmaBufferSize,0x00010003,0x10000 HKR,,Pci9054CardNum,0x00010003,0x10000 ;----------------------------------------------------------- ; Event log registry entries ;----------------------------------------------------------- [EventLog_Inst_9054] AddReg = EventLog_AddReg_9054 [EventLog_AddReg_9054] HKR,,EventMessageFile,0x00020000,\"%SystemRoot%\\System32\\IoLogMsg.dll;%SystemRoot%\\System32\\Drivers\\Pci9054.sys\" HKR,,TypesSupported,0x00010001,7 ;----------------------------------------------------------- ; Source file information ;----------------------------------------------------------- [DestinationDirs] DefaultDestDir = 10, System32\\Drivers ;10 = %Windir% [SourceDisksFiles] Pci9054.sys = 1 [SourceDisksNames.x86] 1 = %INSTDISK%,\"\",1 ;----------------------------------------------------------- ; String information ;----------------------------------------------------------- [Strings] cdyw=\"Cdyw Soft Group\" MFGNAME=\"Cdyw Technology\" INSTDISK=\"Pci9054 Driver Installation Disk\" |
|
沙发#
发布于:2005-04-08 10:14
问题搞定,同时给大家分享一下解结方法。
把\"Get CT Status Board\"=DDInstall_9054,PCI\\VEN_10b5&DEV_5406 改为\"Get CT Status Board\"=DDInstall_9054,PCI\\VEN_10B5&DEV_5406&SUBSYS_030710B5&REV_0B 加入了子系统ID 及 版本ID ,OK! 希望以后遇到同一问题的同仁们,多注意看这个地方。 |
|