Cannot load a printer driver on Windows 7 x64 system, error 0x00000002
I am trying to migrate a 32 bit vista printer driver over to a 64 bit Windows 7 environment. I have loaded WDK and set up a x64 environment on a PC running a 32 bit version of XP with SP2. I am using two .GPD files that specify the
printer parameters from the Vista driver. I have modified my INF file per the tests run by INFGATE. I have used INF2CAT to generate a .cat file for the files in my INF file. I digitally sign the CAT file and
try to add/load the driver on a 64 bit PC. It detects that the files are signed and tries to load. After a delay, a message box pops up and says "Printer driver was not installed. Operation could not be completed (error 0x00000002).
I am trying to use the resident unidrv minidriver with GPD files. There are numerous examples of minor tweaks I have tried without success. I have built the driver in both checked and free environments without success.
Below is my INF file to show exactly what I am trying to do. It referrences a NTPRINT.inf and a Unidrv file, which I have made sure is in the driver path, but it still won't load.
Is there a tool or some feature that I could turn on that would give me more details as to why I cannot load the driver ? Any help would be greatly appreciated.
; oemprinter
; w2v64.inf
;
; Copyright (c) 2010 OEM Craden Peripherals Corporation
;
[Version]
CatalogFile= craden.cat
DriverVer=06/29/2010,01.00.00.02
Signature="$Windows NT$"
Provider="Craden"
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer
;[ClassInstall64.NTamd64]
;AddReg=printer_class_addreg
;
;[printer_class_addreg]
;HKR,,,,%PrinterClassName%
;HKR,,Icon,,"-4"
;HKR,,Installer64,,"ntprint.dll,ClassInstall64"
;HKR,,NoDisplayClass,,1
;HKR,,EnumPropPages64,,"printui.dll,PrinterPropPageProvider"
[Manufacturer]
"Craden" = Craden, NTamd64
[Craden.NTamd64]
"Craden DP9" = CrDP9.GPD,CradenCraden_DP9AEB0, LPTENUM\Craden_DP9
"Craden DP8" = CrDP8.GPD,CradenCraden_DP86E71, LPTENUM\Craden_DP8
[Craden]
"Craden DP9" = CrDP9.GPD,CradenCraden_DP9AEB0, LPTENUM\Craden_DP9
"Craden DP8" = CrDP8.GPD,CradenCraden_DP86E71, LPTENUM\Craden_DP8
[CrDP9.GPD]
CopyFiles=@CR24res.Dll,@CrDP9.GPD ;Resource DLL and GPD file
DataSection=UNIDRV_DATA ;Unidrv Data Section
DataFile=CrDP9.GPD ;
Include=NTPRINT.inf ;Include NTPrint.inf
Needs=UNIDRV_DATA ;Install Unidrv
[CrDP8.GPD]
CopyFiles=@CR24res.Dll,@CrDP8.GPD
DataSection=UNIDRV_DATA
DataFile=CrDP8.GPD
Include=NTPRINT.inf
Needs=UNIDRV_DATA
;;CoreDriverSection:"{D20EA372-DD35-4950-9ED8-A6335AFE79F0}",UNIDRV_DATA
;;[PrinterPackageIntallation.amd64]
;;PackageAware=True
[DestinationDirs]
DefaultDestDir=66000
[SourceDisksNames.amd64]
1 = %disk1%,,,""
[SourceDisksFiles]
CR24res.Dll = 1
CrDP9.GPD = 1
CrDP8.GPD = 1
[Strings]
PrinterClassName="Printers"
CR="Craden"
disk1="Win7Driver"
June 29th, 2010 10:37pm
For such questions please discuss in the following forum.
MSDN - Windows SDK ForumArthur Xie - MSFT
Free Windows Admin Tool Kit Click here and download it now
June 30th, 2010 11:16am