阅读:4980回复:8
64位Vista系统下打印驱动的inf引导安装文件,如何编写!
我在64位Vista系统下编写了一个打印驱动的inf引导安装文件,但始终不能将打印机驱动安装成功,请教各位如何编写!有没有哪位写过的,发个参考一下,谢谢!
email: jiangyingchan@sina.com |
|
|
驱动中牛
![]() |
沙发#
发布于:2008-03-06 12:43
DDK中有例子吧
|
驱动中牛
![]() |
板凳#
发布于:2008-03-06 12:47
; PTPCPlPr.INF
; ; INF file for OEM DLL PT/PC Plugin Provider sample ; ; Copyright 2001-2005 Microsoft Corporation [Version] Signature="$Windows NT$" Provider=%MS% LayoutFile=ntprint.inf ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318} Class=Printer DriverVer=09/09/2005,1.0.0.2 ; ; Manufacturer section. ; ; This section lists all of the manufacturers ; that we will display in the Dialog box ; [Manufacturer] "Microsoft"=Microsoft, NTx86, NTamd64, NTia64 ; ; Model sections. ; ; Each section here corresponds with an entry listed in the ; [Manufacturer] section, above. The models will be displayed in the order ; that they appear in the INF file. ; [Microsoft] "UniDrv PT/PC Plugin Provider" = PTPCPLPR [Microsoft.NTx86] "UniDrv PT/PC Plugin Provider" = PTPCPLPR [Microsoft.NTamd64] "UniDrv PT/PC Plugin Provider" = PTPCPLPR [Microsoft.NTia64] "UniDrv PT/PC Plugin Provider" = PTPCPLPR ; ; Installer Sections ; ; These sections control file installation, and reference all files that ; need to be copied. The section name will be assumed to be the driver ; file, unless there is an explicit DriverFile section listed. ; [PTPCPLPR] CopyFiles=@PTPCPLPR.GPD CopyFiles=@PTPCPLPR.INI CopyFiles=@PTPCPLPR.DLL DataFile=PTPCPLPR.GPD DataSection=UNIDRV_DATA Include=NTPRINT.INF Needs=UNIDRV.OEM,UNIDRV_DATA,TTFSUB.OEM ; Copy Sections ; ; Lists of files that are actually copied. These sections are referenced ; from the installer sections, above. Only create a section if it contains ; two or more files (if we only copy a single file, identify it in the ; installer section, using the @filename notation) or if it's a color ; profile (since the DestinationDirs can only handle sections, and not ; individual files). ; ; Nothing needed here ; ; Location of source files not in Layout.inf. ; [SourceDisksNames] 100 = %OEMIntentSample% [SourceDisksFiles.X86] PTPCPLPR.DLL = 100,x86 [SourceDisksFiles.amd64] PTPCPLPR.DLL = 100,amd64 [SourceDisksFiles.IA64] PTPCPLPR.DLL = 100,ia64 [SourceDisksFiles] PTPCPLPR.GPD = 100 PTPCPLPR.INI = 100 ; ; Call SetupSetDirectoryId with 66000 to set the target directory at runtime ; (depending on which environment drivers are getting installed) ; [DestinationDirs] DefaultDestDir=66000 ; ; Localizable Strings ; [Strings] MS="Microsoft DDK Sample" OEMIntentSample="UniDrv PT/PC Plugin Provider" |
驱动中牛
![]() |
地板#
发布于:2008-03-06 12:49
这个是增加了PrintTicket的sample,应该能用在64位Vista下面
|
地下室#
发布于:2008-03-07 09:29
谢了,非常感谢,我马上去试试
|
|
|
驱动中牛
![]() |
5楼#
发布于:2008-03-07 10:26
不用客气,不知道能不能用,没有在64位下的vista跑过。
|
6楼#
发布于:2008-09-17 15:42
To angel_dolphin_i :
您好! 关于这个INF的文件样例,我根据自己的文件情况修改了一下。 但是在安装过程中,提示0x00000002错误。(有可能是某个文件无法找到) 请问您是否遇到过这种情况,该如何解决呢? 另:我的驱动是跑在32位Vista系统下的。 非常希望能够获得您的解答,谢谢! PS:我做驱动开发不是很久,我这个打印驱动 文件情况如下: UI.DLL UNI.DLL vprinter.gpd vprinter.ini 驱动代码应该是没有问题的,在XP下工作正常。DLL文件在WDK6000下重新编译过。 |
|
7楼#
发布于:2010-06-06 23:38
谁帮我把这个打印机驱动改为64位系统下能安装,谢谢
;; W2SETUP.INF (for Windows 2000) ; ; (C) 1996-2004 Fuji Xerox Co., Ltd. All right reserved ; [Version] Signature = "$Windows NT$" Provider = %NEC% ClassGUID = {4D36E979-E325-11CE-BFC1-08002BE10318} Class = Printer ;CatalogFile = CatalogFileName ; ; ; Manufacturer section (Japanese) ; [Manufacturer] %NEC% = NEC.JPN ; ; Model sections (Japanese) ; [NEC.JPN] "NEC MultiWriter3300N SS" = NK5LDZIS.NPD,LPTENUM\NECMultiWriter3300N631F,NECMultiWriter3300N631F,NEC_MultiWriter3300N SS ; ; Installer Sections (Japanese) ; [NK5LDZIS.NPD] CopyFiles = @NK5LDZIS.NPD,@NK5LDZIS.NBP,@NK5LDZJS.DLL,@NK5LDZJS.CHW,@NK5LDZES.DLL,@NK5LDZES.CHM,@NK5LDZES.CHW,@NJLL29W2.DLL,NK5LDZDS DataSection = NK5LDZDS_DATA DataFile = NK5LDZIS.NPD LanguageMonitor = %PJL_MONITOR% ; ; Copy section (Japanese) ; [NK5LDZDS] NK5LDZDS.DLL NK5LDZUS.DLL NK5LDZJS.CHM NKCGUSS.DLL FXZDHA32.DLL ; ; Source Disk Section (Japanese) ; [SourceDisksNames.x86] 1 = %DISK1%,,, [SourceDisksFiles] NK5LDZDS.DLL = 1 NK5LDZUS.DLL = 1 NK5LDZJS.DLL = 1 NK5LDZES.DLL = 1 NK5LDZIS.NPD = 1 NK5LDZIS.NBP = 1 NK5LDZJS.CHM = 1 NK5LDZJS.CHW = 1 NK5LDZES.CHM = 1 NK5LDZES.CHW = 1 NKCGUSS.DLL = 1 FXZDHA32.DLL = 1 NJLL29W2.DLL = 1,,,,,,,2,0,0 ; ; OEM URLS ; ; This sections gives the URL for manufacturers found in the Manufacturers section ; [OEM URLS] %NEC% = "http://nec8.com/" ; ; Data Sections ; ; These sections contain data that is shared between devices. ; [NK5LDZDS_DATA] DriverFile = NK5LDZDS.DLL ConfigFile = NK5LDZUS.DLL HelpFile = NK5LDZJS.CHM ; ; Call SetupSetDirectoryId with 66000 to set the target directory at runtime ; (depending on which environment drivers are getting installed) ; [DestinationDirs] DefaultDestDir = 66000 ; ; Localizable Strings ; [Strings] DISK1 = "NMPSディスク #4" NEC = "NEC" PJL_MONITOR = "PrintAgent Language Monitor for MultiWriter3300N,NJLL29W2.DLL" |
|
8楼#
发布于:2010-10-22 15:16
我遇到和你一样的问题,也是在安装的时候出现0x00000002错误,后来我发现是inf文件中的languagemonitor 这个条目引起的,你可以试试把这个拿掉,应该能安装,但打印驱动能不能正常使用就不知道了,希望对你有所帮助,如果你搞定了,记得发个MAIL给我,一起交流一下心得。 mailto: 183452339@qq.com
|
|
|