阅读:1250回复:5
驱动高手能帮帮我吗?
我生成的驱动程序aa.sys和card1.ini,驱动在安装过程中总提示“安装设备时,出现了一个错误,名称已用作服务名或显示名”,我不明白什么原因,那为高手能告诉我将非常感谢!我card1.ini文件为:[Version]
Signature=\"$Windows NT$\" 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=NewDeviceClass ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} ;--------- 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] aa.sys = 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] DefaultDestDir = 12 ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] ; PCI hardware IDs use the form ; PCI\\VEN_aaaa&DEV_bbbb&SUBSYS_cccccccc&REV_dd ; %DeviceDesc%=Card2bd_DDI, PCI\\VEN_10b5&DEV_5201 ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [Card2bd_DDI] CopyFiles=@aa.sys AddReg=Pciwdm_9X_AddReg [Pciwdm_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,aa.sys ; --------- Windows NT ----------------- [Card2bd_DDI.NT] CopyFiles=@aa.sys [Card2bd_DDI.NT.Services] Addservice = aa, 0x00000002, Card2bd_AddService [Card2bd_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\aa.sys ; --------- Files (common) ------------- [Pciwdm_Files_Driver] aa.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName=\"Jia Xun Fei Hong\" MfgName=\"jiaxun\" DeviceDesc=\"2B+D Card\" DeviceClassName=\"2b+d Card Drivers\" SvcDesc=\"2B+D Card for NT\" |
|
沙发#
发布于:2003-05-29 19:45
用户被禁言,该主题自动屏蔽! |
|
板凳#
发布于:2003-05-30 09:30
我就是参考例子的INF文件改的,有些项是可以不写的,我也看了这方面的资料也没能查出问题,版主有这方面好的例子能提供我吗?最好能帮我看看有何问题,另外我想问一个简单问题,在注册表中startType设为3时驱动程序安装时不会启动,需上层应用程序启动,所以即使驱动有问题也不影响安装是吗?谢谢了先
|
|
地板#
发布于:2003-05-30 12:15
在注册表中看看 aa 是否已作服务名用了。
|
|
|
地下室#
发布于:2003-06-02 11:55
[Strings]
ProviderName=\"Jia Xun Fei Hong\" MfgName=\"jiaxun\" DeviceDesc=\"2B+D Card\" DeviceClassName=\"2b+d Card Drivers\" SvcDesc=\"2B+D Card for NT\" 中,最后两行可能错误,请更正再... |
|
|
5楼#
发布于:2003-06-02 13:56
可能问题还是在驱动程序sys文件上,我把其它PCI卡的驱动inf文件改成我的厂商号和设备号也能装上,但我把我的驱动名改成它的驱动名后就不能安装提示我“驱动程序源文件和语言不一致”,我决得好像驱动在安装时会打开驱动文件,但我在注册表中startType设为3驱动程序按请求启动,谁能帮我解释一下吗?
|
|