阅读:3308回复:22
USB驱动安装疑问!!!分数容易得
诸位大侠,小弟最近编写的USB驱动安装Info文件出了个怪事。在
98下第一次安装该驱动时。安装提示: //------------------------------------------------------- 在未知上找不到TopUsb.sys文件 安装程序在复制文件时出错。请单击确定,重新复制文件。 如果再次出现此消息,请退出安装程序,然后重新运行安装程序。 //------------------------------------------------------- 点击浏览按钮定位TopUsb.sys文件进行可正常安装。我现在看了好多 贴子也没找到办法解决。书也查了几遍真是奇怪看不出有什么错误。 希望诸位高手能不吝法宝,指点一二。阿弥陀佛! //--------------------------------*.info内容见下: [Version] Signature = $CHICAGO$ Provider = %TDEC% ClassGUID = {36fc9e60-c465-11cf-8056-444553540000} Class = USB DriverVer = 03/07/2003, 1.0 [Manufacturer] %TDEC% = TDEC.Mfg [TDEC.Mfg] %TDEC.DeviceDesc0% = DriverInstall.98, USB\\VID_0925&PID_5678 [CopyFiles_USB] TopUsb.sys,,,4 ;--------------------------------------------------------- ; Windows 2000 installation section ;--------------------------------------------------------- [DriverInstall.NT] CopyFiles = CopyFiles_USB [TopUsb.Services] AddService = TopUsb, 0x00000002 , TopUsb_Service_Inst, TopUsb_EventLog_Inst [TopUsb_Service_Inst] DisplayName = %TopUsb.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 0x1 ; SERVICE_ERROR_NORMAL LoadOrderGroup = Base ServiceBinary = %10%\\System32\\Drivers\\TopUsb.sys ;---------------------------------------------------------- ; Windows 98 installation section ;---------------------------------------------------------- [DriverInstall.98] AddReg = AddRegistry_98 CopyFiles = CopyFiles_USB [AddRegistry_98] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,TopUsb.sys ;---------------------------------------------------------- ; Event log registry entries ;---------------------------------------------------------- [TopUsb_EventLog_Inst] AddReg = TopUsb_EventLog_AddReg [TopUsb_EventLog_AddReg] HKR,,EventMessageFile,0x00020000,\"%SystemRoot%\\System32\\IoLogMsg.dll;%SystemRoot%\\System32\\drivers\\TopUsb.sys\" HKR,,TypesSupported,0x00010001,7 ;---------------------------------------------------------- ; Source file information ;---------------------------------------------------------- [SourceDisksNames.x86] 1 = %InstallDisk% [SourceDisksFiles] TopUsb.sys = 1 [DestinationDirs] DefaultDestDir = 10, System32\\Drivers ;----------------------------------------------------------- ; String information ;----------------------------------------------------------- [Strings] TDEC.DeviceDesc0 = \"TopUsbAD\" InstallDisk = \"TOP Installation Disk\" TDEC = \"Top Digital Equipment Co.,Ltd.\" TopUsb.SvcDesc = \"TopService\" [编辑 - 3/11/03 by wfoog] |
|
|
沙发#
发布于:2003-03-18 15:45
我再顶一下。最近发现其实大家如果要
做Win2000下info其实有个最安全的办法 直接在安装DDK目录下找info的例子改了就行。既可学习又 不容易出错。我觉得比DDK的info工具方便。 |
|
|
板凳#
发布于:2003-03-13 10:03
不好意思,现在又有其它任务挺忙。我还没试。
不过分数现在就给。感谢大家的大力支持谢谢!!! |
|
|
地板#
发布于:2003-03-13 09:55
怎么还不给分?再顶一下。。。
[ControlFlags] ExcludeFromSelect=* 在这个中可要可不要,不会有安装错误的:)。。。 |
|
|
地下室#
发布于:2003-03-13 09:54
怎么还不给分?再顶一下。。。
[ControlFlags] ExcludeFromSelect=* 可要可不要,不会有安装错误的:)。。。 |
|
|
5楼#
发布于:2003-03-12 16:26
Errors:
Line 1: (E1081) Directive: CatalogFile required in section [Version] for WHQL digital signature. Line 12: (E1199) Model USB\\VID_0925&PID_5676 should be listed in an ExcludeFromSelect directive 按照 checkInf 的检查结果,你应该加上 ExcludeFromSelect=* (除非要通过WHQL digital signature, 否则第一个error不用去理) |
|
6楼#
发布于:2003-03-12 13:42
我估计大约就是两个原因:)
win98问题:[SourceDisksNames]节,少参数; win2K问题: USB\\VID_0925&PID_5678.DeviceDesc% = DriverInstall.98, [DriverInstall.98] 不能是[DriverInstall.NT], 而是[DriverInstall.98.NT] |
|
|
7楼#
发布于:2003-03-12 13:37
studying..
|
|
8楼#
发布于:2003-03-12 12:22
问题搞定了告诉一声原因! :D
|
|
|
9楼#
发布于:2003-03-12 11:36
谢谢大家帮助!我尽快会试一下。
分数人人有! |
|
|
10楼#
发布于:2003-03-11 20:12
用你的那个,2000下安装肯定不正常:)
USB\\VID_0925&PID_5678.DeviceDesc% = DriverInstall.98, [DriverInstall.98] [DriverInstall.NT]???? should:[DriverInstall.98.NT] |
|
|
11楼#
发布于:2003-03-11 20:05
我按着你的,给你改写了一下,你的INF写的不太规范,也有错误,这个肯定行:)
; Installation inf for the TDEC driver ; TDEC.inf ; (c) Copyright 2003 TDEC ; 03/11/2003 Build by Peter ; [Version] Signature=\"$CHICAGO$\";你很大意 Class = USB ClassGUID = {36fc9e60-c465-11cf-8056-444553540000} Provider = %TDEC% DriverVer = 03/07/2003,1.0 ;CatalogFile=TDEC.CAT [ControlFlags] ExcludeFromSelect=* [Manufacturer] %MfgName% = TDEC ;not define the default as other:) [DestinationDirs] DefaultDestDir=11 TDEC.CopyFiles= 10, System32\\Drivers [TDEC] %USB\\VID_0925&PID_5678.DeviceDesc% = DriverInstall,USB\\VID_0925&PID_5678 ;DriverInstall.98???? hehe... DriverInstall.98.nt???!!! [DriverInstall] CopyFiles = TDEC.CopyFiles AddReg = TDEC.AddReg [DriverInstall.NT] CopyFiles = TDEC.CopyFiles ;NT only use [DriverInstall.NT.Services] AddService = TopUsb, 0x00000002 , TDEC.AddService, TDEC.AddEvent [TDEC.AddService] DisplayName = %TopUsb.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\TopUsb.sys [TDEC.AddEvent] AddReg = TDEC.AddEvent.AddReg [TDEC.AddEvent.AddReg] HKR,,EventMessageFile,0x00020000,\"%SystemRoot%\\System32\\IoLogMsg.dll ;%SystemRoot%\\System32\\drivers\\TopUsb.sys\" ;I don\'t know???? HKR,,TypesSupported,0x00010001,7 [TDEC.AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,TopUsb.sys ;use default is OK,not write 4 [TDEC.CopyFiles] TopUsb.sys ;use default is OK in x86,note pararements [SourceDisksNames] 1 = \"TOP Installation Disk\",\"\",, [SourceDisksFiles] TopUsb.sys = 1 ;----------------------------------------------------------- ; String information ;----------------------------------------------------------- [Strings] TDEC = \"TDEC\" MfgName = \"TDEC\" USB\\VID_0925&PID_5678.DeviceDesc = \"TopUsbAD Driver\" TopUsb.SvcDesc = \"TopService\" |
|
|
12楼#
发布于:2003-03-11 17:34
你用什么生成INF档的?我记得DDK下边的工具GenINF仅仅支持win2000的哦,不知道是否对你有帮助
|
|
13楼#
发布于:2003-03-11 16:50
我刚刚找了个perl解释器生成的报告见下
---------------------------------------------- Summary of \"F:\\temp\\TopUsb.inf\" Total Errors: 2 Total Warnings: 8 -------------------------------------------------------------------------------- Errors: Line 1: (E1081) Directive: CatalogFile required in section [Version] for WHQL digital signature. Line 12: (E1199) Model USB\\VID_0925&PID_5676 should be listed in an ExcludeFromSelect directive -------------------------------------------------------------------------------- Warnings: Line 1: (W2073) No Copyright information found Line 15: (W2034) No destination dir was defined for this section. Your driver is being copied to the DefaultDestDir location specified (10, SYSTEM32\\DRIVERS). Line 20: (W2083) Section [DriverInstall.NT] not referenced Line 23: (W2083) Section [TopUsb.Services] not referenced Line 26: (W2083) Section [TopUsb_Service_Inst] not referenced Line 48: (W2083) Section [TopUsb_EventLog_Inst] not referenced Line 51: (W2083) Section [TopUsb_EventLog_AddReg] not referenced Line 52: (W2014) String tokens inside quotes are interpreted as straight text. -------------------------------------------------------------------------------- Annotated INF: [Version] ; (E1081) Directive: CatalogFile required in section [Version] for WHQL digital signature. ; (W2073) No Copyright information found Signature = $CHICAGO$ Provider = %TDEC% ClassGUID = {36fc9e60-c465-11cf-8056-444553540000} Class = USB DriverVer = 03/07/2003, 1.0 [Manufacturer] %TDEC% = TDEC.Mfg [TDEC.Mfg] %TDEC.DeviceDesc0% = DriverInstall.98, USB\\VID_0925&PID_5676 ; (E1199) Model USB\\VID_0925&PID_5676 should be listed in an ExcludeFromSelect directive [CopyFiles_USB] TopUsb.sys,,,4 ; (W2034) No destination dir was defined for this section. Your driver is being copied to the DefaultDestDir location specified (10, SYSTEM32\\DRIVERS). ;--------------------------------------------------------- ; Windows 2000 installation section ;--------------------------------------------------------- [DriverInstall.NT] ; (W2083) Section [DriverInstall.NT] not referenced CopyFiles = CopyFiles_USB [TopUsb.Services] ; (W2083) Section [TopUsb.Services] not referenced AddService = TopUsb, 0x00000002 , TopUsb_Service_Inst, TopUsb_EventLog_Inst [TopUsb_Service_Inst] ; (W2083) Section [TopUsb_Service_Inst] not referenced DisplayName = %TopUsb.SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 0x1 ; SERVICE_ERROR_NORMAL LoadOrderGroup = Base ServiceBinary = %10%\\System32\\Drivers\\TopUsb.sys ;---------------------------------------------------------- ; Windows 98 installation section ;---------------------------------------------------------- [DriverInstall.98] AddReg = AddRegistry_98 CopyFiles = CopyFiles_USB [AddRegistry_98] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,TopUsb.sys ;---------------------------------------------------------- ; Event log registry entries ;---------------------------------------------------------- [TopUsb_EventLog_Inst] ; (W2083) Section [TopUsb_EventLog_Inst] not referenced AddReg = TopUsb_EventLog_AddReg [TopUsb_EventLog_AddReg] ; (W2083) Section [TopUsb_EventLog_AddReg] not referenced HKR,,EventMessageFile,0x00020000,\"%SystemRoot%\\System32\\IoLogMsg.dll;%SystemRoot%\\System32\\drivers\\TopUsb.sys\" ; (W2014) String tokens inside quotes are interpreted as straight text. HKR,,TypesSupported,0x00010001,7 ;---------------------------------------------------------- ; Source file information ;---------------------------------------------------------- [SourceDisksNames.x86] 1 = %InstallDisk% [SourceDisksFiles] TopUsb.sys = 1 [DestinationDirs] DefaultDestDir = 10, System32\\Drivers ;----------------------------------------------------------- ; String information ;----------------------------------------------------------- [Strings] TDEC.DeviceDesc0 = \"TopUsbAD\" InstallDisk = \"TOP Installation Disk\" TDEC = \"Top Digital Equipment Co.,Ltd.\" TopUsb.SvcDesc = \"TopService\" 希望有贵人能帮一下。 |
|
|
14楼#
发布于:2003-03-11 15:40
版主不对呀。我查过资料
TopUsb.sys,,,4后的4只是拷贝标志。为4是指总是覆盖目标文件。 它与1 = %InstallDisk%的1是没关系的。:( |
|
|
15楼#
发布于:2003-03-11 15:25
谢谢版主。我马上去试一下。
对了在win2k下安装出错提示说: 因为没有替设备指定一个功能驱动程序。 |
|
|
16楼#
发布于:2003-03-11 12:28
[CopyFiles_USB]
TopUsb.sys,,,4 这个4有问题吧?应该是你后面指定的 1 才对。 [SourceDisksNames.x86] 1 = %InstallDisk% |
|
|
17楼#
发布于:2003-03-11 11:14
而且我发现用该inf安装驱动,在win2k下无法正常安装。
我想请教大家如要使inf,既能在win98下安装又要能在win2k下 安装。inf文件的编写是不是有什么讲究呀!:( |
|
|
18楼#
发布于:2003-03-11 10:15
请大家帮帮忙!
|
|
|
19楼#
发布于:2003-03-11 09:56
剑侠那是当然。
|
|
|
上一页
下一页