I had to silently install the driver for HP LaserJet P1006 printer, and this is how I did it:
Create a driver directory with the following contents:
Copy from CD:
HPLJP1005.inf
HP100632.cat
P1005.img
P1006.img
P1505.img
extract all contents from the following cabs on CD:
HP1006drv.cab
extract HP1006%lang%ww32.cab
To then silently install the printer driver call:
cscript.exe %WinDir%\system32\prndrvr.vbs -a -m "HP LaserJet
P1006" -i "C:\path\to\driverdir\HPLJP1005.INF" -h "C:\path\to\driverdir"