Printer INF problem on 2k & XP

Hi,

I have been trying to install a printer through INF file. The INF file works
fine on NT and installs the printer.
But on XP and 2k, when the INF is selected, it shows the name of the Printer
Driver/Printer Name and then on click of “Next” button, it says “Printer
Driver selection could not be changed”.

Anybody can help me out with this problem?.

In short, is there any specific method of writing INF files for 2k, XP?.
Will NT INF file work with XP and 2K directly.

I have attached the INF template with this mail. Pl Ignore GUID.

INF FILE

[Version]
Signature=“$Windows NT$”
LayoutFile=layout.inf
Class=Printer

[DestinationDirs]
DefaultDestDir=52
SYSFILES=11
SPOOLFLS=52

[DXPINSTALL]
CopyFiles=SPOOLFLS,SYSFILES
PrinterName=XYZ
DriverName=XYZ
PrinterSection=PRNTER
SetupTitle=XYZ Printer

[Manufacturer]
“XYZ corp”

[XYZ corp]
%ABC%=PRNTER

[PRNTER]
CopyFiles=SPOOLFLS,SYSFILES
DataSection=Data_Sec
DataFile=PRNTUI.DLL
ConfigFile=PRNTUI.DLL
DriverFile=PRNDRV.DLL

[Data_Sec]
DataFile=PRNTUI.DLL
ConfigFile=PRNTUI.DLL
DriverFile=PRNDRV.DLL

[SPOOLFLS]


[SYSFILES]


[SourceDisksFiles]
= 1

[SourceDisksNames.x86]
1 = %disk1%,i386

[Strings]
ABC=“XYZ Writer”
disk1=“XYZ Printer Setup Disk”

Is it because the Printer has not been made a trusted one, this error
occurs?.

Thanks in anticipation,
Venkat