Virtual printer driver installation failed.

Hi,

I am developing a virtual printer drivers based on GPD file installation. When I am trying to install the virtual printer driver using “Add Printer” wizard, the printer driver installed successfully but Printer installation failed and pou-up a message “Unable to install printer, Cannot complete this function”.

I have gone through setupapi.dev.log file but there is no log information for Printer installation failure only Driver setup log is present inside the file.

But when I looked in event viewer I got the error message “Installing printer driver - failed, error code 0x57, HRESULT 0x80070057. See the event user data for context information.”

Also, I checked the error code 0x57 and this error code for “Invalid parameter”.

I have checked many times in INF file but didn’t find any issue. The INF file contents is below, please verify if any issue:

[Version]
Signature=“$Windows NT$”
Provider=%MS%
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer

[Manufacturer]
“ABCD”=ABCD, NTamd64, NTia64

;
; Model Specifications Section
;

[ABCD]
“Virtual Printer Driver”=vpd.GPD,Virtual_Printer_Driver

[ABCD.NTamd64]
“Virtual Printer Driver”=vpd.GPD,Virtual_Printer_Driver

[ABCD.NTia64]
“Virtual Printer Driver”=vpd.GPD,Virtual_Printer_Driver

[vpd.GPD]
CopyFiles=@vpd.dll,@vpd.GPD
DataSection=UNIDRV_DATA
DataFile=vpd.gpd
Include=NTPRINT.INF
Needs=UNIDRV.OEM

[DestinationDirs]
DefaultDestDir=66000

[SourceDisksNames.amd64]
1 = %disk1%,\amd64

[SourceDisksNames.ia64]
1 = %disk1%,\ia64

[SourceDisksFiles]
vpd.dll = 1
vpd.GPD = 1

[Strings]
PrinterClassName=“Printers”
MS=ABCD
disk1=“ABCD Printer Driver Setup”

Thanks,
Raku

Can you please tell me where we find some information regarding the installation failure. ?