Page 1 of 1 1
Topic Options
#99493 - 2003-03-12 09:01 PM DELPRINTERCONNECTION, drivers, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Running into a problem with legacy drivers under a Windows 2000 environment. This is a result of recent migration of client systems to Windows 2000.

We can go in a manually remove the printer drivers on a each client. However, when you use the delete printer, it still appears to hold onto the printer drivers.

Thanks,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#99494 - 2003-03-12 09:05 PM Re: DELPRINTERCONNECTION, drivers, etc.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11625
Loc: CA
Yeah.. Delprinter only removes the connection. It does not uninstall any drivers.

Not sure if anyone has written or done anything in that area to actually remove drivers when a printer is removed via script.

Top
#99495 - 2003-03-12 09:33 PM Re: DELPRINTERCONNECTION, drivers, etc.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you can delete the drivers by script.
for newest (current) driver for printer you need to consult:
HKEY_CURRENT_USER\Printers\Settings\Drivers

but, if you want to make a clean driver setup, you should remove all folders in:
C:\WINNT\system32\spool\drivers

don't ask, just do [Big Grin]

I had a printserver clusters made with kix 3.51 and scripts ran for years... so, just trust me [Wink]

delprinterconnection takes care of reg cleanup but indeed it does not touch the files.
_________________________
!

download KiXnet

Top
#99496 - 2003-03-13 12:55 AM Re: DELPRINTERCONNECTION, drivers, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Here is some Pseudocode..
code:
$regkey='HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Print\Environments\Windows NT x86\Drivers\Version-2'
$location='%windir%\system32\spool\drivers\w32x86\2'
If ENUMKEY($regkey)<>'Acrobat PDFWriter'
$configfile=READVALUE($regkey,'Configuration File')
IF EXIST($location+'\'+$configfile)
DEL $location+'\'+$configfile
ENDIF
$datafile=READVALUE($regkey,'Data File')
IF EXIST($location+'\'+$datafile)
DEL $location+'\'+$datafile
ENDIF
$dependentfiles=READVALUE($regkey,'Dependent Files')
IF EXIST($location+'\'+$dependentfiles
DEL $location+'\'+$dependentfiles)
ENDIF
$driver=READVALUE($regkey,'Driver')
IF EXIST($location+'\'+$driver)
DEL $location+'\'+$driver
ENDIF
$helpfile=READVALUE($regkey,'Help File')
IF EXIST($location+'\'+$helpfile)
DEL $location+'\'+$helpfile
ENDIF
$RC=DELTREE($regkey+'\'+$regenum)
ENDIF

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#99497 - 2003-03-13 12:59 AM Re: DELPRINTERCONNECTION, drivers, etc.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
driver 2?
and doesn't the correct path for the driver files always reside in HKCU.
why? because network printers are user based.

only local printers (just like acrobat or that crappy old dot matrix in your serial port) are marked in the HKLM.
_________________________
!

download KiXnet

Top
#99498 - 2003-03-13 01:28 AM Re: DELPRINTERCONNECTION, drivers, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Yes. Version-3 are the 2000 drivers..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#99499 - 2003-03-13 06:58 AM Re: DELPRINTERCONNECTION, drivers, etc.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well, not really
I have ibm printers which lay they drivers without leaving trace in reg.

all the drivers under w2k wksta's driver-dir are w2k drivers. well they are marked as such.

if you want to clean up the drivers, you would need to clean them up...
mm...
haven't tried yet but will.
cleaning the whole dir should have no difference once you map the printers again after that.
_________________________
!

download KiXnet

Top
#99500 - 2003-03-13 07:07 AM Re: DELPRINTERCONNECTION, drivers, etc.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
to make it more precise, all 32-bit win drivers should be in:
C:\WINNT\system32\spool\drivers\w32x86

as example for me...
C:\WINNT\system32\spool\drivers\w32x86\2 holds fiery-printserver printer-drivers

whereas:
C:\WINNT\system32\spool\drivers\w32x86\3 holds lexmark (IBM) drivers

only the fiery is properly registered but I assure you also the ibm works [Wink]
_________________________
!

download KiXnet

Top
#99501 - 2003-03-13 02:32 PM Re: DELPRINTERCONNECTION, drivers, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
We are running into a problem with a generic "HP 4 Plus Driver" even though we have HP 4000, 5N, etc. printers. Since we have recentely completed the migration of all of our systems to Windows 2000, it is causing problems with MS-Excel, Adobe Acrobat, VFP, and so on. We are finding that even going to to the right driver is not helping either. So what is helping? Going to a PCL 6 rather than an a PCL 5 driver. The HP 4 Plus driver is what we had as a "generic" printer driver and was mainly Citrix-driven. But, we now have the drivers updated on the Citrix boxes too.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#99502 - 2003-03-14 02:00 AM Re: DELPRINTERCONNECTION, drivers, etc.
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Hey Kent...We use LaserJet 5 as a generic driver for a majority of our HP based printers (laserjet 4000, 4050, ...). Havent had any problems with it so far.
Top
#99503 - 2003-03-14 02:00 PM Re: DELPRINTERCONNECTION, drivers, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Shane,

The two problems we are having is with the "generic" LaserJet 4 Driver and they are ACRORD32.EXE errors when printing and EXCEL does not go between legal and letter/portrait and landscape.. We are finding the PCL 6 driver specific to the printer is what is working. We have tried the PCL 5 driver specific to the printer and it does not work. All of our clients are now on Windows 2000 SP-3. I am finishing the last two NT-4 this morning at our satellite location.

The removal of the driver pseudocode came to me from one of the people I work with as he showed how to remove the driver under NT-4. Whereas, under 2000, you go to printers and then File/Server Properties and then the driver tab.. You can then delete the driver from there.

Thanks,

Kent

[ 14. March 2003, 14:48: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#99504 - 2003-03-14 02:04 PM Re: DELPRINTERCONNECTION, drivers, etc.
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
The other thing is that we are in process of changing over from an NT-4 print server to a 200 print server too..

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#99505 - 2003-03-14 02:24 PM Re: DELPRINTERCONNECTION, drivers, etc.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
btw, just found out that laserjet6 drivers provided by M$ in winXP do not work properly.
neither did generic Laserjet driver (for 4, 5 and 6) but it had to be specific...

just as btw...
_________________________
!

download KiXnet

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 194 anonymous users online.
Newest Members
BeeEm, min_seow, Audio, Hoschi, Comet
17882 Registered Users

Generated in 0.251 seconds in which 0.216 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org