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

请教"指定位置不包含有关硬件信息“错误

楼主#
更多 发布于:2005-04-15 10:27
刚学用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]
vampireda
驱动牛犊
驱动牛犊
  • 注册日期2004-07-28
  • 最后登录2009-08-07
  • 粉丝0
  • 关注0
  • 积分9分
  • 威望2点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-04-20 23:19
&SUBSYS_00000000&REV_00
去掉这两个
呵呵
shingle
驱动牛犊
驱动牛犊
  • 注册日期2007-11-05
  • 最后登录2008-05-19
  • 粉丝0
  • 关注0
  • 积分30分
  • 威望4点
  • 贡献值0点
  • 好评度3点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2008-04-23 15:41
Re:请教
多谢楼上的回答,我也遇到了同样的问题
sdzczwj
驱动牛犊
驱动牛犊
  • 注册日期2008-03-23
  • 最后登录2008-12-30
  • 粉丝0
  • 关注0
  • 积分3分
  • 威望23点
  • 贡献值0点
  • 好评度2点
  • 原创分0分
  • 专家分0分
地板#
发布于:2008-05-18 19:18
Re:请教
我碰到这个问题最后是EEPROM的设置有问题
游客

返回顶部