Go Back   TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



Script to Install Printer Drivers w/o adding printer

Windows XP Support


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-01-2009
Member
 
Join Date: Jan 2009
Posts: 4
Script to Install Printer Drivers w/o adding printer

I'm hoping someone can help me. I need a script that will allow me to install multiple printer drivers without needing to add the printers.

Normally, I go into printers, go to file, server properties, drivers tab and add them there. This allows me to install the drivers on the machine for when the user needs to add a printer at different locations.

The drivers are located on a server that is only accessible from my central location, but if needed, I can put them on a cd just to install using the script.

I'm using mostly XP with only a few Vista machines, which requires the same steps but you have to run as administrator.

Thanks!

Reply With Quote
  #2  
Old 27-01-2009
Alan Morris [MSFT]
 
Posts: n/a
Re: Script to Install Printer Drivers w/o adding printer

if the print drivers are signed you can use prndrvr.vbs (XP in \system32,Vista in \system32\printing_admin_scripts\en-us) or rundll32 in either OS to call into the printui interface. If the drivers are not signed you will have to use rundll32. In Vista just launch printui.exe, this will invoke the help and you can look through the examples for use in both XP or Vista.
Reply With Quote
  #3  
Old 28-01-2009
Member
 
Join Date: Jan 2009
Posts: 4
Re: Script to Install Printer Drivers w/o adding printer

Alan,
thank you for your reply. You definitely pointed my in the right direction. I have written some code but now I'm getting an error and have had no luck googling it. Heres what I have:

cscript prndrvr.vbs -a -m "hp laserjet 2550 pcl 6"
-v -e -h e:\printdrivers\hp_clj2550_pcl6 -i hpc2550c.inf

I get error code 800A0401, char 27. I'm not familiar with code, so I don't know the rules, but character 27 doesn't look wrong to me?
Reply With Quote
  #4  
Old 28-01-2009
Alan Morris [MSFT]
 
Posts: n/a
Re: Script to Install Printer Drivers w/o adding printer

There is a bunch of file for most of the HP drivers. There is some language file in one of the cabs that has to be a flat file.

Just crack all the cabs and expand the files to a flat file share

PS I have no clue on the error, it's not mapping to anything.
Reply With Quote
  #5  
Old 03-02-2009
Member
 
Join Date: Jan 2009
Posts: 4
Re: Script to Install Printer Drivers w/o adding printer

Hi Alan,
I'm guessing by flat, you mean they have to be "extracted"?? I have looked and there is not a cab file at all.

Any other suggestions?

Thanks.
Reply With Quote
  #6  
Old 03-02-2009
Alan Morris [MSFT]
 
Posts: n/a
Re: Script to Install Printer Drivers w/o adding printer

add the link to the driver you are installing.
Reply With Quote
  #7  
Old 09-01-2013
Member
 
Join Date: Jan 2013
Posts: 1
Re: Script to Install Printer Drivers w/o adding printer

Hi,

Could there any other way to install drivers without using the inf file?

Thanks and Regards,
Rahul Yadav
Reply With Quote
  #8  
Old 13-03-2013
Member
 
Join Date: Dec 2007
Posts: 2,273
Re: Script to Install Printer Drivers w/o adding printer

Quote:
Originally Posted by ry005 View Post

Could there any other way to install drivers without using the inf file?
There is no way to install drivers without using the inf file? For more information check here - http://support.microsoft.com/kb/927524
Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Script to Install Printer Drivers w/o adding printer"
Thread Thread Starter Forum Replies Last Post
How to install the HP 3055 printer drivers Script Hardware Peripherals 4 03-05-2011 11:01 AM
Printer Script Issue on my Network Printer loll Networking & Security 1 17-01-2011 11:31 PM
win2k8 how to install 32 and 64 bit printer drivers Peter Dickason Windows Server Help 13 06-10-2010 11:29 PM
How to install IBM Infoprint printer drivers? Bardoczky Hardware Peripherals 5 16-06-2010 10:22 PM
Unable to install HP 1220C printer drivers Macbeth Hardware Peripherals 4 25-12-2009 05:24 PM


All times are GMT +5.5. The time now is 07:27 AM.