topsoar
驱动牛犊
驱动牛犊
  • 注册日期2005-02-28
  • 最后登录2005-08-08
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:2196回复:1

请教“指定位置不包含相关硬件的信息”

楼主#
更多 发布于:2005-04-15 10:28
刚学用driverworks生成了一个驱动,并修改了部分inf内容,在安装时弹出一个“选择设备”对话框内容为“指定的位置不包含相关硬件的信息”,但第二次安装却能安装上,请问各位可能是什么问题,我的inf文档附上:
;; Frametest.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=\"$Windows 95$\"
Provider=%ProviderName%
DriverVer = 4/14/2005, 1.0

; 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=PCICrabClass
;//类名
;ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b}
ClassGUID={43D56CDB-1BDE-46d5-9FBC-E5C9D74BC32B}
;//GUID名

;--------- 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 = \"Install Disk\",Disk1,,

;[SourceDisksFiles]
;Frametest.sys = 1,,

;--------- ClassInstall/ClassInstall32 Section -------------------------------

; Not necessary if using a standard class

; 9X Style
[ClassInstall]
Addreg=PCICrabClass_AddReg
;//和注册表相关的类注册

; NT Style
[ClassInstall32]
Addreg=PCICrabClass_AddReg
;//和注册表相关的类注册

[Class_AddReg]
HKR,,,,%DeviceClassName%
HKR,,Icon,,\"-18\"

;--------- DestinationDirs Section -------------------------------------------

[DestinationDirs]
Frametest_Files_Driver = 10,System32\\Drivers

;--------- Manufacturer and Models Sections ----------------------------------

[Manufacturer]
%MfgName%=Mfg0

[Mfg0]

; PCI hardware IDs use the form
; PCI\\VEN_aaaa&DEV_bbbb&SUBSYS_cccccccc&REV_dd
;
%DeviceDesc%=Frametest_DDI, PCI\\VEN_10b5&DEV_4000

;---------- DDInstall Sections -----------------------------------------------
; --------- Windows 9X -----------------

; Experimentation has shown that DDInstall root names greater than 19 characters
; cause problems in Windows 98

[Frametest_DDI]
CopyFiles=Frametest_Files_Driver
AddReg=Frametest_9X_AddReg

[Frametest_9X_AddReg]
HKR,,DevLoader,,*ntkern
HKR,,NTMPDriver,,frametest.sys
HKR, \"Parameters\", \"BreakOnEntry\", 0x00010001, 0

; --------- Windows NT -----------------

[Frametest_DDI.NT]
CopyFiles=Frametest_Files_Driver
AddReg=Frametest_NT_AddReg

[Frametest_DDI.NT.Services]
Addservice = Frametest, 0x00000002, Frametest_AddService

[Frametest_AddService]
DisplayName = %SvcDesc%
ServiceType = 1 ; SERVICE_KERNEL_DRIVER
StartType = 3 ; SERVICE_DEMAND_START
ErrorControl = 1 ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\\System32\\Drivers\\frametest.sys

[Frametest_NT_AddReg]
HKLM, \"System\\CurrentControlSet\\Services\\Frametest\\Parameters\",\\
\"BreakOnEntry\", 0x00010001, 0


; --------- Files (common) -------------

[Frametest_Files_Driver]
frametest.sys

;--------- Strings Section ---------------------------------------------------

[Strings]
ProviderName=\"MNRI_SJTU,Crab\"
MfgName=\"Crab\"
DeviceDesc=\"PDC4000Crab\"
DeviceClassName=\"Description of Frametest Device class here\"
SvcDesc=\"Description of Frametest NT service here\"
多谢先


[编辑 -  4/15/05 by  topsoar]
wwm_820924
驱动牛犊
驱动牛犊
  • 注册日期2004-07-04
  • 最后登录2016-01-09
  • 粉丝0
  • 关注0
  • 积分21分
  • 威望169点
  • 贡献值1点
  • 好评度22点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-04-20 16:50
这个地方有问题,%DeviceDesc%=Frametest_DDI, PCI\\VEN_10b5&DEV_4000
少了子系统ID和版本ID,
PCI\\VEN_aaaa&DEV_bbbb&SUBSYS_cccccccc&REV_dd
我原来也遇到过这个问题。
游客

返回顶部