#162217 - 2006-05-22 03:51 PM
Install Local Printer
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
Is there an easy way to install a local printer using kix?
Right now, I'm just shelling to this command: RUNDLL32 PRINTUI.DLL,PrintUIEntry /if /f %windir%\inf\ntprint.inf /r "file:" /m "Epson LQ-1000" /b "Epson LQ-1000" /Y /q
However, printui.dll installs the printer regardless of it existing or not. I see that as wasting time during the logon. I'd be satisfied even w/ a simple IF..ENDIF to make that only run one time. Ideas?
|
|
Top
|
|
|
|
#162220 - 2006-05-22 04:45 PM
Re: Install Local Printer
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
I'm not trying to install a "REAL" printer. I'm installing a file printer for an application. Nothing really prints to it, rather it's just used for generating output. Much like a PDF printer.
Les - good idea. I can just query the registry to see if it exists.
|
|
Top
|
|
|
|
#162222 - 2006-05-22 05:01 PM
Re: Install Local Printer
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
PrinterExist UDF looks great. Sometimes I wonder why I ask questions on this BB, when I should have just looked at the UDFs first.
BTW - - Oddly enough a person w/ only "USER" level permissions seems to be able to install the EPSON LQ-1000 file printer. I'm guessing it's because they aren't REALLY adding new hardware.
|
|
Top
|
|
|
|
#162225 - 2006-05-23 05:37 PM
Re: Install Local Printer
|
tylan
Starting to like KiXtart
Registered: 2005-11-17
Posts: 115
Loc: Johnstown, PA
|
I **SWEAR** that it worked yesterday. I tried at some workstations today, and it wouldn't install the file printer. I ended up putting a "shell" statement to call a batch file as another user. Is there a way to make the "shell" command wait until the batch file is finished before proceeding w/ the script?
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 837 anonymous users online.
|
|
|