100分 求解答 虚拟打印机中 INF文件与安装问题
本人最近在开发虚拟打印机,这几天 写INF文件,但是安装之后始终打印成功。
请教各位高手, 本人INF文件里面哪些部分写法有问题,????
请帮忙指正,谢谢!
以下是INF文件的具体内容:
######################################################
;Hewlett-Packard LaserJet combined printer driver INF file for Windows XP and 2000
;Copyright Hewlett-Packard 2001
; List of supported printers, manufacturers
[Version]
Signature="$Windows NT$"
;Provider=%HP%
Provider=%VirtualPrinter%
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
DriverVer=1/18/2002,02.00.12.02
[ClassInstall32.NT]
AddReg=printer_class_addreg
[printer_class_addreg]
HKR,,,,%PrinterClassName%
HKR,,Icon,,"-4"
HKR,,Installer32,,"ntprint.dll,ClassInstall32"
HKR,,NoDisplayClass,,1
HKR,,EnumPropPages32,,"printui.dll,PrinterPropPageProvider"
; Manufacturer section.
;
; This section lists all of the manufacturers
; that we will display in the Dialog box
[Manufacturer]
%VirtualPrinter%=HP,NTx86.5.1
; 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.
;
; Phase II
;
[HP.NTx86.5.1]
"HP LaserJet 4" = HPLJ4.GPD.XP ,Hewlett-PackardHP_La185F,HP_LaserJet_4
"HP LaserJet 4M" = HPLJ4M.GPD.XP ,HPHP_LaserJet_4MBBF9,HP_LaserJet_4M
"HP LaserJet 4 Plus" = HPLJ4PS.GPD.XP ,Hewlett-PackardHP_LaC3A1,HP_LaserJet_4_Plus
"HP LaserJet 4M Plus" = HP4MPLS.GPD.XP ,HPHP_LaserJet_4M_Plu959A,HP_LaserJet_4M_Plus
"HP LaserJet 4L" = HPLJ4L.GPD.XP ,Hewlett-PackardLaserC029,HP_LaserJet_4L
"HP LaserJet 4ML" = HPLJ4ML.GPD.XP ,HPHP_LaserJet_4MLB77A,HP_LaserJet_4ML
"HP LaserJet 4P" = HPLJ4P.GPD.XP ,Hewlett-PackardHP_La7EE2,HP_LaserJet_4P
"HP LaserJet 4MP" = HPLJ4MP.GPD.XP ,HPHP_LaserJet_4MP7E7B,HP_LaserJet_4MP
"HP LaserJet 4Si" = HPLJ4SI.GPD.XP ,Hewlett-PackardHP_La973E,HP_LaserJet_4Si
"HP LaserJet 4Si MX" = HP4SIMX.GPD.XP ,HPHP_LaserJet_4Si_MX9FF1,HP_LaserJet_4Si_MX
"HP LaserJet 4V" = HPLJ4V.GPD.XP ,Hewlett-PackardHP_La7C62,HP_LaserJet_4V
"HP LaserJet 4MV" = HPLJ4MV.GPD.XP ,HPHP_LaserJet_4MV7CFB,HP_LaserJet_4MV
"HP LaserJet 5" = HPLJ5.GPD.XP ,Hewlett-PackardHP_LaE238,HPHP_LaserJet_53828,HP_LaserJet_5
"HP LaserJet 5" = HPLJ5.GPD.XP ,HWP2140,HWP20F0,HP_LaserJet_5
"HP LaserJet 5M" = HPLJ5M.GPD.XP ,HPHP_LaserJet_5M2BF8,HP_LaserJet_5M
"HP LaserJet 5N" = HPLJ5N.GPD.XP ,HPHP_LaserJet_5N2AB8,HP_LaserJet_5N
"HP LaserJet 5L" = HPLJ5L.GPD.XP ,Hewlett-PackardHP_La27E2,HP_LaserJet_5L
"HP LaserJet 5P" = HPLJ5P.GPD.XP ,Hewlett-PackardHP_LaEEE3,HPHP_LaserJet_5P2238,HP_LaserJet_5P
"HP LaserJet 5P" = HPLJ5P.GPD.XP ,HWP20D0,HWP20F0,HPHP_LaserJet_5P2238,HP_LaserJet_5P
"HP LaserJet 5MP" = HPLJ5MP.GPD.XP ,HPHP_LaserJet_5MPBE2A,HP_LaserJet_5MP
"HP LaserJet 5Si" = HP5SI.GPD.XP ,Hewlett-PackardHP_La576F,HP_LaserJet_5Si
"HP LaserJet 5Si Mopier" = HPMOPY.GPD.XP ,HPHP_LaserJet_5Si_Mo7AC5,HP_LaserJet_5Si_Mopier
"HP LaserJet 5Si MX" = HP5SIM.GPD.XP ,HPHP_LaserJet_5Si_MX4EF0,HP_LaserJet_5Si_MX
"HP LaserJet 6L" = HPLJ6L.GPD.XP ,Hewlett-PackardHP_LaD7E2,HP_LaserJet_6L
"HP LaserJet 6MP" = HPLJ6MP.GPD.XP ,HPHP_LaserJet_6MPBEDA,HP_LaserJet_6MP
"HP LaserJet 6P" = HPLJ6P.GPD.XP ,Hewlett-PackardHP_La1EE3,HP_LaserJet_6P
"HP LaserJet 6P" = HPLJ6P.GPD.XP ,HWP21A0,HWP20D0,HP_LaserJet_6P
[HP]
"HP LaserJet 4" = HPLJ4.GPD.W2K ,Hewlett-PackardHP_La185F,HP_LaserJet_4
"HP LaserJet 4M" = HPLJ4M.GPD.W2K ,HPHP_LaserJet_4MBBF9,HP_LaserJet_4M
"HP LaserJet 4 Plus" = HPLJ4PS.GPD.W2K ,Hewlett-PackardHP_LaC3A1,HP_LaserJet_4_Plus
"HP LaserJet 4M Plus" = HP4MPLS.GPD.W2K ,HPHP_LaserJet_4M_Plu959A,HP_LaserJet_4M_Plus
"HP LaserJet 4L" = HPLJ4L.GPD.W2K ,Hewlett-PackardLaserC029,HP_LaserJet_4L
"HP LaserJet 4ML" = HPLJ4ML.GPD.W2K ,HPHP_LaserJet_4MLB77A,HP_LaserJet_4ML
"HP LaserJet 4P" = HPLJ4P.GPD.W2K ,Hewlett-PackardHP_La7EE2,HP_LaserJet_4P
"HP LaserJet 4MP" = HPLJ4MP.GPD.W2K ,HPHP_LaserJet_4MP7E7B,HP_LaserJet_4MP
"HP LaserJet 4Si" = HPLJ4SI.GPD.W2K ,Hewlett-PackardHP_La973E,HP_LaserJet_4Si
"HP LaserJet 4Si MX" = HP4SIMX.GPD.W2K ,HPHP_LaserJet_4Si_MX9FF1,HP_LaserJet_4Si_MX
"HP LaserJet 4V" = HPLJ4V.GPD.W2K ,Hewlett-PackardHP_La7C62,HP_LaserJet_4V
"HP LaserJet 4MV" = HPLJ4MV.GPD.W2K ,HPHP_LaserJet_4MV7CFB,HP_LaserJet_4MV
"HP LaserJet 5" = HPLJ5.GPD.W2K ,Hewlett-PackardHP_LaE238,HPHP_LaserJet_53828,HP_LaserJet_5
"HP LaserJet 5" = HPLJ5.GPD.W2K ,HWP2140,HWP20F0,HP_LaserJet_5
"HP LaserJet 5M" = HPLJ5M.GPD.W2K ,HPHP_LaserJet_5M2BF8,HP_LaserJet_5M
"HP LaserJet 5N" = HPLJ5N.GPD.W2K ,HPHP_LaserJet_5N2AB8,HP_LaserJet_5N
"HP LaserJet 5L" = HPLJ5L.GPD.W2K ,Hewlett-PackardHP_La27E2,HP_LaserJet_5L
"HP LaserJet 5P" = HPLJ5P.GPD.W2K ,Hewlett-PackardHP_LaEEE3,HPHP_LaserJet_5P2238,HP_LaserJet_5P
"HP LaserJet 5P" = HPLJ5P.GPD.W2K ,HWP20D0,HWP20F0,HPHP_LaserJet_5P2238,HP_LaserJet_5P
"HP LaserJet 5MP" = HPLJ5MP.GPD.W2K ,HPHP_LaserJet_5MPBE2A,HP_LaserJet_5MP
"HP LaserJet 5Si" = HP5SI.GPD.W2K ,Hewlett-PackardHP_La576F,HP_LaserJet_5Si
"HP LaserJet 5Si Mopier" = HPMOPY.GPD.W2K ,HPHP_LaserJet_5Si_Mo7AC5,HP_LaserJet_5Si_Mopier
"HP LaserJet 5Si MX" = HP5SIM.GPD.W2K ,HPHP_LaserJet_5Si_MX4EF0,HP_LaserJet_5Si_MX
"HP LaserJet 6L" = HPLJ6L.GPD.W2K ,Hewlett-PackardHP_LaD7E2,HP_LaserJet_6L
"HP LaserJet 6MP" = HPLJ6MP.GPD.W2K ,HPHP_LaserJet_6MPBEDA,HP_LaserJet_6MP
"HP LaserJet 6P" = HPLJ6P.GPD.W2K ,Hewlett-PackardHP_La1EE3,HP_LaserJet_6P
"HP LaserJet 6P" = HPLJ6P.GPD.W2K ,HWP21A0,HWP20D0,HP_LaserJet_6P
; OEM URLS
;
; This sections gives the URL for manufacturers found in the Manufacturers section
[OEM URLS]
%HP% = "http://go.microsoft.com/fwlink/?LinkID=37&prd=10798&sbp=Printers"
;
; MS Driver Core installs
;
; These sections are used by Printer OEMs to install MS provided drivers
; 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.
;
; Note: Pulling HPLJ4.GPD via Needs= directive to get pcl5eres.dll from XP
; drivers.cab file due to XP defect whereby this file wasn't listed
; This also takes care of imgport.dll, ttfsub.gpd, UNIDRV sections
; but unavoidably brings with it the unneeded hplj4.gpd file.
;
; In the case of the LJ4 install does Needs=HPLJ4.GPD overwrite the
; just copied newer version of hplj4.gpd??? In this case perhaps, use
; Needs=HPLJ4L.GPD to avoid this issue?
;
; Phase II GPDs
;
; XP
;Old CopyFiles statement before use of Includes= & Needs= ...
;CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4.GPD,@hpc02.ini,RES_COMMON,HELP,UNIDRV,imgport.DLL,@TTFSUB.GPD
[HPLJ4.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4L.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HPLJ4L.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4L.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4L.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HPLJ4M.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4M.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4M.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HPLJ4ML.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4ML.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4ML.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HPLJ4MP.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4MP.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4MP.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HPLJ4P.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4P.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4P.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HPLJ4PS.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4PS.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4PS.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HP4MPLS.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HP4MPLS.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HP4MPLS.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HPLJ4SI.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4SI.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4SI.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HP4SIMX.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HP4SIMX.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HP4SIMX.GPD
PrintProcessor=%PRINT_PROCESSOR%
[HPLJ4V.GPD.XP]
CopyFiles=HPPRPROC,UI,RENDER,@HPLJ4V.GPD,@hpc02.ini,@hpcstr02.dll,HELP
Include=NTPRINT.INF
Needs=HPLJ4.GPD
DataSection=HP_UNIDRV_BIDI_DATA
DataFile=HPLJ4V.GPD
PrintProcessor=%PRINT_PROCESSOR%