安装驱动失败,麻烦帮忙看下。inf文件

如梦如幻应作如是观 2018-05-08 06:03:13
先说下 我用inf文件安装虚拟打印机,环境是win7 x64.
设备管理器中选择用右键,添加过时硬件方式添加,报错安装失败,找不到文件
inf文件内容如下:

[Version]
Signature="$Windows NT$"
Provider=BYHX
LayoutFile=ntprint.inf
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
DriverVer=01/01/2017
CatalogFile=TestPrinter.cat
[Manufacturer]

%Corp% = ImagePrinter, NTx86, NTamd64, NTia64

[ImagePrinter]
%Model 1% = BITMAP

[ImagePrinter.NTx86]
%Model 1% = BITMAP

[ImagePrinter.NTamd64]
%Model 1% = BITMAP

[ImagePrinter.NTia64]
%Model 1% = BITMAP

[BITMAP]
CopyFiles=@imgprint.gpd
CopyFiles=BMP
DataSection=UNIDRV_DATA
Include=NTPRINT.INF
Needs=UNIDRV.OEM,UNIDRV_DATA

[BMP]
ddklocalui.dll
ddklocalmon.dll

[SourceDisksNames]
100 = %DISK1%,,,

[SourceDisksFiles.AMD64]
ddklocalui.dll = 100,amd64
ddklocalmon.dll = 100,amd64


[SourceDisksFiles.X86]
ddklocalui.dll = 100,i386
ddklocalmon.dll = 100,i386

[SourceDisksFiles.IA64]
ddklocalui.dll = 100,ia64
ddklocalmon.dll = 100,ia64


[SourceDisksFiles]
imgprint.gpd = 100

[DestinationDirs]
DefaultDestDir=66000


[Strings]
Corp = "BYHX"
Model 1 = "TestPrinter"


然后我查找,windows\inf\setupapi.dev.log
发现最后报错:


ndv: Installing files...
dvi: {DIF_INSTALLDEVICEFILES} 17:48:15.074
dvi: Class installer: Enter 17:48:15.075
inf: Opened INF: 'C:\Windows\System32\DriverStore\FileRepository\img_print.inf_amd64_neutral_6bfb7262ee4082ed\img_print.inf' ([strings])
inf: Opened PNF: 'C:\Windows\INF\ntprint.inf' ([strings.0804])
inf: Opened INF: 'C:\Windows\System32\DriverStore\FileRepository\img_print.inf_amd64_neutral_6bfb7262ee4082ed\img_print.inf' ([strings])
!!! dvi: Class installer: failed(0x00000002)!
!!! dvi: Error 2: The system cannot find the file specified.
dvi: {DIF_INSTALLDEVICEFILES - exit(0x00000002)} 17:48:15.377
ndv: Device install status=0x00000002
ndv: Performing device install final cleanup...
! ndv: Queueing up error report since device installation failed...
ndv: {Core Device Install - exit(0x00000002)} 17:48:15.381
dvi: {DIF_DESTROYPRIVATEDATA} 17:48:15.382
dvi: Class installer: Enter 17:48:15.382
dvi: Class installer: Exit
dvi: Default installer: Enter 17:48:15.383
dvi: Default installer: Exit
dvi: {DIF_DESTROYPRIVATEDATA - exit(0xe000020e)} 17:48:15.385
ump: Server install process exited with code 0x00000002 17:48:15.389
ump: {Plug and Play Service: Device Install exit(00000002)}
ndv: Device Install failed for new device...installing NULL driver.
dvi: {Plug and Play Service: Device Install for ROOT\UNKNOWN\0000}
ump: Creating Install Process: DrvInst.exe 17:48:15.400
! ndv: Installing NULL driver!
dvi: Set selected driver complete.
dvi: {DIF_ALLOW_INSTALL} 17:48:15.425
dvi: No class installer for '未知驱动程序软件程序包'
dvi: No CoInstallers found
dvi: Default installer: Enter 17:48:15.428
dvi: Default installer: Exit
dvi: {DIF_ALLOW_INSTALL - exit(0xe000020e)} 17:48:15.429
dvi: {DIF_INSTALLDEVICE} 17:48:15.430
dvi: No class installer for '未知驱动程序软件程序包'
dvi: Default installer: Enter 17:48:15.432
! dvi: Installing NULL driver!
! dvi: A NULL driver installation is not allowed for this type of device!
!!! dvi: Cleaning up failed installation (e0000219)
!!! dvi: Default installer: failed!
!!! dvi: Error 0xe0000219: The installation failed because a function driver was not specified for this device instance.
dvi: {DIF_INSTALLDEVICE - exit(0xe0000219)} 17:48:15.437
ump: Server install process exited with code 0xe0000219 17:48:15.441
ump: {Plug and Play Service: Device Install exit(e0000219)}
<<< Section end 2018/05/08 17:48:15.443
<<< [Exit status: FAILURE(0x00000002)]


哪位大神能帮忙看看能怎么解决,把这个虚拟的打印机装上去,多谢。
...全文
1259 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
帮我看看呀 大神们

21,616

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧