阅读:3321回复:1
64位系统INF文件安装问题(已自签,且在测试模式下)
我的测试环境是WINDOWS7 64位系统。XP下一切正常。用WDK 在WIN7 64位下生成SYS .自签名。
原INF文件如下 [Version] Signature="$Chicago$" Class=Keyboard Provider=%zhang% DriverVer=02/02/2004,1.0.0.0 [Manufacturer] %zhang% = VKBModels [VKBModels] %VirtualKeyboard% = VKboard.Install, VKeyboard [DestinationDirs] DefaultDestDir = 12 [SourceDisksNames] 1="Install #1",,, [SourceDisksFiles.x86] vkeyfdo.sys=1,. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Windows 2000 [VKboard.Install.NTx86] CopyFiles=VKboard.Files.Driver.NTx86 [VKboard.Files.Driver.NTx86] vkeyfdo.sys,,,%COPYFLG_NOSKIP% [VKboard.Install.NTx86.Services] AddService = vkeyfdo, %SPSVCINST_ASSOCSERVICE%, VKboard.Service [VKboard.Service] DisplayName = %VKboard.ServiceName% ServiceType = %SERVICE_KERNEL_DRIVER% StartType = %SERVICE_DEMAND_START% ErrorControl = %SERVICE_ERROR_NORMAL% ServiceBinary = %10%\System32\Drivers\vkeyfdo.sys ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Strings [Strings] VirtualKeyboard = "Virtual Keyboard" zhang = "leiwhere.zhang" VKboard.ServiceName="Virtual Keybord Function Driver" SPSVCINST_ASSOCSERVICE=0x00000002 ; Driver service is associated with device being installed COPYFLG_NOSKIP=2 ; Do not allow user to skip file SERVICE_KERNEL_DRIVER=1 SERVICE_AUTO_START=2 SERVICE_DEMAND_START=3 SERVICE_ERROR_NORMAL=1 我修改后的INF文件如下 [Version] Signature="$Chicago$" Class=Keyboard Provider=%zhang% DriverVer=02/02/2004,1.0.0.0 [Manufacturer] %zhang% = VKBModels [VKBModels] %VirtualKeyboard% = VKboard.Install, VKeyboard [DestinationDirs] DefaultDestDir = 12 [SourceDisksNames] 1="Install #1",,, [SourceDisksFiles] vkeyfdo.sys=1,. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Windows 2000 [VKboard.Install.NTAMD64] CopyFiles=VKboard.Files.Driver.NTAMD64 [VKboard.Files.Driver.NTAMD64] vkeyfdo.sys,,,%COPYFLG_NOSKIP% [VKboard.Install.NTAMD64.Services] AddService = vkeyfdo, %SPSVCINST_ASSOCSERVICE%, VKboard.Service [VKboard.Service] DisplayName = %VKboard.ServiceName% ServiceType = %SERVICE_KERNEL_DRIVER% StartType = %SERVICE_DEMAND_START% ErrorControl = %SERVICE_ERROR_NORMAL% ServiceBinary = %10%\SyWow64\Drivers\vkeyfdo.sys ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; Strings [Strings] VirtualKeyboard = "Virtual Keyboard" zhang = "leiwhere.zhang" VKboard.ServiceName="Virtual Keybord Function Driver" SPSVCINST_ASSOCSERVICE=0x00000002 ; Driver service is associated with device being installed COPYFLG_NOSKIP=2 ; Do not allow user to skip file SERVICE_KERNEL_DRIVER=1 SERVICE_AUTO_START=2 SERVICE_DEMAND_START=3 SERVICE_ERROR_NORMAL=1 调用UpdateDriverForPlugAndPlayDevices 安装。返回ERROR_NO_BACKUP 。请问这个INF文件那里有问题??改如何修改?? |
|
沙发#
发布于:2012-06-26 14:18
你生成cat试试,编译器会告诉你原因.
|
|
|