Help in removing the WinXP 3rd-party Printer drivers

Forum for anything else which doesn't fit in the above forums. Site feedback, random talk, whatever, are welcome.
Post Reply
Mike84
Posts: 32
Joined: Fri Dec 16, 2011 4:47 pm

Help in removing the WinXP 3rd-party Printer drivers

Post by Mike84 » Sun May 04, 2014 3:17 am

HI,

I want to remove the Windows XP Printer drivers but without removing any native Printer support.
If someone with more knowledge could check the work i did below for errors that would be helpful.

In nLite i selected the Printer Drivers for removal and added this Printer files below into nLite to not be removed:

Code: Select all

locale.gpd

pcl4res.dll
pcl5eres.dll
pcl5ures.dll
pcleures.dll
p6disp.gpd
p6font.gpd
pclxl.dll
pclxl.gpd
pjl.gpd

stddtype.gdl
stdnames.gpd
stdschem.gdl
stdschmx.gdl
pjlmon.dll
ttfsub.gpd
unidrv.dll
unidrv.hlp
unidrvui.dll
unires.dll

ps5ui.dll
pscript.hlp
pscript.ntf
pscript5.dll

plotter.dll
plotui.dll
plotui.hlp

wowfax.dll
wowfaxui.dll

tty.dll
tty.gpd
tty.ini
ttyres.dll
ttyui.dll
ttyui.hlp
genibm9.gpd
genibm9w.gpd
ok9ibres.dll
msgenbw.ppd
msgencol.ppd
I manual edited the NTPRINT.INF file and removed all deleted Printers ->

Code: Select all

;
; NTPRINT.INF (for Windows XP)
;
; List of supported printers, manufacturers
;

[Version]
Signature="$Windows NT$"
Provider=%MS%
; LayoutFile=layout.inf
ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
Class=Printer

DriverVer=07/01/2001,5.1.2600.5815
[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]
%Generic%=Generic
%Microsoft%=Microsoft

;
; 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.
;

[Generic]
"Generic / Text Only"                                  = TTY.GPD             ,GenericGeneric_/_Tex8040,Generic_/_Text_Only
"Generic IBM Graphics 9pin"                            = GENIBM9.GPD         ,GenericGeneric_IBM_GD35A,Generic_IBM_Graphics_9pin
"Generic IBM Graphics 9pin wide"                       = GENIBM9W.GPD        ,GenericGeneric_IBM_GC7D5,Generic_IBM_Graphics_9pin_wide
"MS Publisher Color Printer"                           = MSGENCOL.PPD        ,GenericMS_Publisher_25C7,MS_Publisher_Color_Printer
"MS Publisher Imagesetter"                             = MSGENBW.PPD         ,GenericMS_Publisher_B397,MS_Publisher_Imagesetter

[Microsoft]
"Windows 3.1 Compatible Fax Driver"                    = WOWFAX.DLL          ,2369,MicrosoftWindows_3.130CB,Windows_3.1_Compatible_Fax_Driver

;
; Previous Names
;
; This sections gives previous names for a model. This is currently used only
; for Windows 9x --> Windows NT point and print.
;

[Previous Names]

;
; OEM URLS
;
; This sections gives the URL for manufacturers found in the Manufacturers section.
;

[OEM URLS]

;
; MS Driver Core installs
;
; These sections are used by Printer OEMs to install MS provided drivers.
;

; PSCRIPT
[PSCRIPT.OEM]
CopyFiles=PSCRIPT

; UNIDRV without PJLMON support
[UNIDRV.OEM]
CopyFiles=UNIDRV

; UNIDRV with PJLMON support
[UNIDRV_BIDI.OEM]
CopyFiles=UNIDRV,PJLMON.DLL

; Data section that attaches PJLMON as the driver Lang Monitor
[UNIDRV_BIDI_DATA]
DriverFile=UNIDRV.DLL
ConfigFile=UNIDRVUI.DLL
HelpFile=UNIDRV.HLP
LanguageMonitor=%PJL_MONITOR%

; Section to allow OEMs to reference the Global Font Substitution Table
[TTFSUB.OEM]
CopyFiles=@TTFSUB.GPD

; Section to allow OEMs to use sRGB color profile
[sRGBPROFILE.OEM]
CopyFiles=sRGB_PROFILE

; Section to allow OEMs to set locale dependencies
[LOCALE.OEM]
CopyFiles=@LOCALE.GPD

; Section to allow OEMs to install PCL6 support files
[PCLXL.OEM]
CopyFiles=PCLXL,@PCL5ERES.DLL

;
; 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.
;

[GENIBM9.GPD]
copyFiles=@OK9IBRES.DLL,@GENIBM9.GPD,UNIDRV
DataSection=UNIDRV_DATA

[GENIBM9W.GPD]
copyFiles=@OK9IBRES.DLL,@GENIBM9W.GPD,UNIDRV
DataSection=UNIDRV_DATA

[MSGENBW.PPD]
CopyFiles=@MSGENBW.PPD,PSCRIPT
DataSection=PSCRIPT_DATA

[MSGENCOL.PPD]
CopyFiles=@MSGENCOL.PPD,PSCRIPT
DataSection=PSCRIPT_DATA

[TTY.GPD]
CopyFiles=@TTYRES.DLL,@TTY.INI,@TTY.DLL,@TTYUI.DLL,@TTY.GPD,@TTYUI.HLP,UNIDRV
DataSection=UNIDRV_DATA

[WOWFAX.DLL]
CopyFiles=@WOWFAX.DLL,WOWFAX
DataSection=WOWFAX_DATA

;
; 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).
;

[PSCRIPT]
PSCRIPT5.DLL
PS5UI.DLL
PSCRIPT.HLP
PSCRIPT.NTF

[PLOTTER]
PLOTTER.DLL
PLOTUI.DLL
PLOTUI.HLP

[WOWFAX]
WOWFAX.DLL
WOWFAXUI.DLL

[PJLMON.DLL]
PJLMON.DLL,,,0x00000020         ; Copy only if new binary

[UNIDRV]
UNIDRV.DLL
UNIRES.DLL
UNIDRVUI.DLL
STDNAMES.GPD
UNIDRV.HLP

[PCLXL]
PCLXL.DLL
PCLXL.GPD
P6FONT.GPD
PJL.GPD
P6DISP.GPD

[sRGB_PROFILE]
"sRGB Color Space Profile.icm",sRGB.ICM,,0x00000020

;
; Data Sections
;
; These sections contain data that is shared between devices.
;

[PSCRIPT_DATA]
DriverFile=PSCRIPT5.DLL
ConfigFile=PS5UI.DLL
HelpFile=PSCRIPT.HLP

[PLOTTER_DATA]
DriverFile=PLOTTER.DLL
ConfigFile=PLOTUI.DLL
HelpFile=PLOTUI.HLP

[UNIDRV_DATA]
DriverFile=UNIDRV.DLL
ConfigFile=UNIDRVUI.DLL
HelpFile=UNIDRV.HLP

[WOWFAX_DATA]
DriverFile=WOWFAX.DLL
ConfigFile=WOWFAXUI.DLL

;
; Call SetupSetDirectoryId with 66000 to set the target directory at runtime
; (depending on which environment drivers are getting installed)
;

[DestinationDirs]
DefaultDestDir=66000
PJLMON.DLL=66002
sRGB_PROFILE=66003

;
; Control Flags
;

[ControlFlags]
ExcludeFromSelect = 2369
InteractiveInstall = 

;
; Source Disk Section
;
; This was added to enable Web Point&Print.
; All files added to this must also be added to Layout.INF
;

[SourceDisksNames.x86]
1   = %W2Kcd%,driver.cab,,"I386"
2   = %W2Kcd%,sp3.cab,,"I386",1

[SourceDisksNames.amd64]
1   = %W2Kcd%,driver.cab,,"Amd64"
2   = %W2Kcd%,sp3.cab,,"Amd64",1


[SourceDisksNames.ia64]
1   = %W2Kcd%,driver.cab,,"Ia64"
2   = %W2Kcd%,sp3.cab,,"Ia64",1

[SourceDisksFiles]
genibm9.gpd  = 1
genibm9w.gpd = 1
locale.gpd   = 2
msgenbw.ppd  = 1
msgencol.ppd = 1
ok9ibres.dll = 1
p6disp.gpd   = 2
p6font.gpd   = 2
pcl4res.dll  = 2
pcl5eres.dll = 2
pcl5ures.dll = 2
pcleures.dll = 1
pclxl.gpd    = 2
pclxl.dll    = 2
pjl.gpd      = 2
pjlmon.dll   = 2
plotter.dll  = 2
plotui.dll   = 2
plotui.hlp   = 1
ps5ui.dll    = 2
pscript.hlp  = 2
pscript.ntf  = 2
pscript5.dll = 2
stdnames.gpd = 2
ttfsub.gpd   = 2
ttyui.hlp    = 1
unidrv.dll   = 2
unidrv.hlp   = 2
unidrvui.dll = 2
unires.dll   = 2

; Files missing from Layout.INF
ntprint.inf  = 2
tty.dll      = 2
tty.gpd      = 1
tty.ini      = 2
ttyres.dll   = 2
ttyui.dll    = 2

; Architecture specific
wowfax.dll   = 1
wowfaxui.dll = 1

;
; Localizable Strings
;

[Strings]
W2Kcd="Windows XP CD-ROM"
MS="Microsoft Windows XP"
PrinterClassName="Printers"
PJL_MONITOR="PJL Language Monitor,PJLMON.DLL"
; Manufacturers
Generic="Generic"
Microsoft="Microsoft"

User avatar
Outbreaker
Posts: 703
Joined: Tue Aug 21, 2007 8:06 am

Post by Outbreaker » Tue May 13, 2014 1:54 pm

I'm not an expert but i tried it out and my Printer is till working. ;)
I also didn't know that Windows XP includes over 30 MB of outdated Printer drivers. :shock:

Post Reply