阅读:1402回复:5
关于驱动程序的安装,请版主和各位仁兄帮帮我!
各位仁兄:
我用DriverStudio工具写了一个在win98下的板卡驱动程序,我将自动生成的.inf文件修改如下: ;; Rspci.inf [Version] Signature=\"$Windows 95$\" Provider=%ProviderName% Class=NewDeviceClass ClassGUID={ff646f80-8def-11d2-9449-00105a075f6b} ;[SourceDisksNames] ;1 = \"Install Disk\",Disk1,, ;[SourceDisksFiles] ;Rspci.sys = 1,, [ClassInstall] Addreg=Class_AddReg ; NT Style [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,\"-18\" [DestinationDirs] Rspci_Files_Driver = 10,System32\\Drivers [Manufacturer] %MfgName%=Mfg0 [Mfg0] %DeviceDesc%=Rspci_DDI, PCI\\VEN_10B5&DEV_9050; ; cause problems in Windows 98 [Rspci_DDI] CopyFiles=Rspci_Files_Driver AddReg=Rspci_9X_AddReg [Rspci_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,Rspci.sys HKR, \"Parameters\", \"BreakOnEntry\", 0x00010001, 0 ; --------- Windows NT ----------------- [Rspci_DDI.NT] CopyFiles=Rspci_Files_Driver AddReg=Rspci_NT_AddReg [Rspci_DDI.NT.Services] Addservice = Rspci, 0x00000002, Rspci_AddService [Rspci_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\Rspci.sys [Rspci_NT_AddReg] HKLM, \"System\\CurrentControlSet\\Services\\Rspci\\Parameters\",\\ \"BreakOnEntry\", 0x00010001, 0 ; --------- Files (common) ------------- [Rspci_Files_Driver] Rspci.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName=\"Your Company Name here\" MfgName=\"Name of HW Manufacturer here\" DeviceDesc=\"Description of Device here\" DeviceClassName=\"Description of Device class here\" SvcDesc=\"Description of NT service here\" 我把编译好的Rspci.sys文件和这个.inf文件放在同一个目录下,在给板卡安装驱动程序时,执行到“找不到Rspci.sys”文件时我给它 指定到Rspci.sys所在目录,可是一按“确定”,系统还是说没找到指定文件,明明是有的,我也不知是我的.inf文件有问题,还是我的.sys文件有问题。请版主和各位帮我看看,不胜感激! [编辑 - 6/18/02 by make] |
|
|
沙发#
发布于:2002-06-18 09:45
[SourceDisksNames]
1 = \"Install Disk\",Disk1,, [SourceDisksFiles] Rspci.sys = 1,, 这几条去掉注释就OK. |
|
板凳#
发布于:2002-06-18 10:04
我把那个注释去掉后,还是不行。请再给我几个建议吧!
谢谢大家! |
|
|
地板#
发布于:2002-06-18 10:59
太好了!我的问题解决了,在此告诉大家一个很重要的注意事项
:windows98下的所有驱动程序文件文件名必须符合8.3的命名格式 否则,就会发生我所发生的问题。 :) |
|
|
地下室#
发布于:2002-06-18 19:16
对!在98下必须满足8.3的要求。
[编辑 - 6/18/02 by llshi] |
|
5楼#
发布于:2002-06-20 11:13
可这以前你并没有违反这个8.3格式啊?你怎么解决的呢?
|
|
|