I should write a VBS-script which installs first a printer driver and after that installs a printer with this driver on WinXP. Installing the printer with a driver which is already installed works but when I want to use the inf file of the print driver I want to install I get always an error
Set objShell = CreateObject("WScript.Shell")
objShell.Run "%comspec% /k --> Install printer DRIVER
objShell.Run "%comspec% /k rundll32 printui.dll,PrintUIEntry /if /b ""PrinterName"" /f %windir%\inf\ntprint.inf /r ""Port"" /m ""HP Color LaserJet 2800 Series PS"" &"
' End of Example ComspecDir VBScript
-> The driver is located in the folder: \driver\