You can install your printer drivers with PrnInst using Command prompt (CMD). With Command Line parameters you can also access the installation options that are not available with PrnInst wizard.
INSTPRN – Printer driver installation
Use this parameter to install a printer driver. Specify the printer name and the port that the printer uses. The specified printer name must match the actual name of your printer. To find out the correct name of your printer, see the <printer_brand> .INF file. It contains a list of all available printer names. Search for the .INF file in the folder, where you stored the printer driver installation files.
Syntax:
/INSTPRN=<driver name>#<port name>[#[<printer name>][#[<location>][#[<comment>]]]]
<driver name> - full printer driver name
<port name> - port name
<printer name> - printer name
<location> - printer location (optional)
<comment> - information for users (optional)
Samples:
PrnInst.exe /INSTPRN=PrinterDriver#LPT1:
PrnInst.exe /INSTPRN=PrinterDriver#LPT1:#MyPrinterName#MyLocation#MyComment
PrnInst.exe /INSTPRN=PrinterDriver#LPT1:###CommentOnly
INSTMULTPRN – Installation of multiple Printers
Use this parameter to install drivers for multiple printers simultaneously. Specify the printer name and the printer port. The printer name must match the actual name of the printer.
To find out the correct name of the printer, see the Printer Driver Installation List <printer_brand>.INF
file. It contains a list of all available printer names. Search for the .INF file in the folder, where you stored the printer driver installation files.
Syntax:
/INSTMULTPRN=<INF file data>
<INF file data> - <full file path of the Printer Driver Installation List file>#<full printer driver name>#<port name>#(optional)<printer destination name>
Sample for INF file where you install 4 printer drivers: Printer1 (linked to port LPT1), Printer2 (linked to port LPT2), and Printer3 (linked to port LPT3).
PrnInst.exe /INSTMULTPRN=C:\Drivers\PRINTER1\#Printer1#LPT1:##Office1#DefaultPrinterInOffice1 PrnInst.exe /INSTMULTPRN=C:\Drivers\PRINTER2\#Printer2#LPT2:#ColorPrinter#Office2 PrnInst.exe /INSTMULTPRN=C:\Drivers\PRINTER3\#Printer3#LPT3:#BWPrinter#Office2
Note
The last printer entry in the .INF file must be terminated with a newline (<Enter>
), so the last line in the file is an empty line.
LANG – Setting the PrnInst language
Use this parameter to define the language in the Printer Installation Wizard. By default, PrnInst always uses the default Windows operating system language. The default language is defined in Control Panel > Regional and Language Options.
Use this parameter to specify other languages for the Printer Installation Wizard.
Note
If you omit this parameter, PrnInst uses the default language.
Syntax:
/LANG=<lang>
<lang> – language ID
Language |
Language ID |
---|---|
Chinese – Simplified |
SCH |
Chinese – Traditional |
CHI |
Danish |
DAN |
Dutch |
DUT |
English |
ENG |
Finnish |
FIN |
French |
FRA |
German |
GER |
Hungarian |
HUN |
Italian |
ITA |
Japanese |
JAP |
Korean |
KOR |
Polish |
POL |
Portuguese |
PBR |
Russian |
RUS |
Slovenian |
SLO |
Spanish |
ESP |
Swedish |
SWE |
Thai |
TAI |
Turkish |
TUR |
Sample:
PrnInst.exe /LANG=GER
UNINSTALLPRN – Uninstall a specific printer
Use this parameter to remove a specific printer driver from your system.
Note
Provide the exact printer name (as installed). To be sure, copy the printer name from Control Panel > Printers & Scanners.
Syntax:
/UNINSTALLPRN=<printer name> [/REMOVEPORT=CURRENT|ALL]
<printer name> – the name of the printer you wish to uninstall
CURRENT - Removes your printer port after you uninstall your driver.
ALL - Removes all unused printer ports.
The /REMOVEPORT
option only removes Loftware Advanced Port Monitor ports. This option doesn't remove Standard TCP/IP, USB, LPT, or other ports.
Samples:
PrnInst.exe /UNINSTALLPRN=Loftware Printer
PrnInst.exe /UNINSTALLPRN=Loftware Printer /REMOVEPORT=CURRENT
UNINSTALLALL – Uninstall all printers
Use this parameter to remove all Loftware printer drivers from your system.
Syntax:
/UNINSTALLALL [/REMOVEPORT=CURRENT|ALL]
Samples:
PrnInst.exe /UNINSTALLALL
PrnInst.exe /UNINSTALLALL /REMOVEPORT=ALL
NOLICENCE – No license display
Use this parameter to start PrnInst in a mode where no Loftware printer driver license and warranty information displays during the installation.
Syntax:
/NOLICENCE
Sample:
PrnInst.exe /NOLICENCE
DIR – Change start browsing path
Use this parameter to specify the location of your Loftware drivers. PrnInst uses this path to browse for the printer drivers. The default location is the folder where PrnInst starts.
Note
DIR must always be the first parameter in the command line.
Syntax:
/DIR=<INF file location>
<INF file location> – full path from which to start searching for .INF files
Sample:
PrnInst.exe /DIR=C:\Drivers\
PREINSTALL – Preinstall driver package
Use this parameter to preinstall the printer driver. Windows automatically finds the driver when the user connects the printer.
Syntax:
/PREINSTALL=<INF file location>
<INF file location> – full path pointing to the .inf file
Sample:
PrnInst.exe /PREINSTALL=C:\Drivers\SAMPLE_DRIVER\SAMPLE_DRIVER.inf
UNINSTALLPACKAGE – Uninstall driver package
Use this parameter to uninstall the printer driver package. Windows can't automatically find the driver of your printer if it was removed from Windows Driver Storage.
Syntax:
/UNINSTALLPACKAGE=<INF file location>
<INF file location> – full path pointing to the .inf file
Sample:
PrnInst.exe /UNINSTALLPACKAGE=C:\Drivers\SAMPLE_DRIVER\SAMPLE_DRIVER.inf
INSTALLPORTMON – Silent installation of Advanced Port Monitor
Use this parameter to silently install Advanced Port Monitor from the printer driver distribution. When using this command, do not use any other commands from the command line list.
Note
This command doesn't install the printer driver.
Syntax:
/INSTALLPORTMON /name=aaaaa [/type=bbbbb] [/monitor=ccccc] [/inf=ddddd] []
Network port type
/ip=eeeee [/port=fffff]
Serial port type
/port=ggggg [/baudRate=hhhhh] [/dataBits-iiiii] [/parity=jjjjj]
[/stopBits=kkkkk] [/flowControl=lllll]
Parallel port type
/port=mmmmm [/reception=nnnnn] [/receptionInterval=ooooo]
[/transmission=ppppp]
Specific port types
[/download=rrrrr] [/printingTimeout=qqqqq] [/downloadTimeout=sssss]
aaaaa – port name that will be displayed in port list
bbbbb – type of port <LAN, LPT, COM>. Parameter is omissible, depending on Port Monitor.
ccccc – name of the Port Monitor being installed. Port monitor name can be found in information installation (.inf) file. Omissible if there is only 1 port monitor.
ddddd – folder location of the information installation file containing Port Monitor. Search for installation information files is subfolder recursive. Omissible if there is only one information file in Printer Installation Wizard folder (or subfolders).
LAN Port
eeeee – ip address of printer on the network.
fffff – printer s network port number. Parameter is omissible, depending on Port Monitor.
COM Port
ggggg – systems COM port number (example for COM3: value is 3)
hhhhh – baud rate of serial port in bits per seconds (valid values: 100, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 128000, 256000)
iiiii – data bits parameter for serial port. (Valid values: 5, 6, 7, 8)
jjjjj – parity parameter for serial communication. (Valid values: none, odd, even, mark, space)
kkkkk – stop bits parameter. (Valid values: 1, 1.5, 2)
lllll – flow control parameter (Valid values: xonxoff, hardware, none)
LPT Port
mmmmm – systems LPT port number (example for LPT1: value is 1)
nnnnn - reception timeout for LPT port when download function is enabled. Parameter is omissible. Default value is 500ms.
ooooo – reception interval for LPT port when download function is enabled. Parameter is omissible. Default value is 200ms.
ppppp – transmission for LPT port when download function is enabled. Parameter is omissible. Default value is 3000ms.
Specific Ports
rrrrr – enabled port specifics for downloading to printer. Omissible, default values is disabled. (Valid values: 0 - disabled, 1 - enabled)
qqqqq – printing timeout value in milliseconds for port specific communication. Omissible, default values is 50ms.
sssss - download timeout value in milliseconds for port specific communication. Omissible, default values is 7000ms.
Samples:
PrnInst.exe /INSTALLPORTMON "–monitor=Advanced Port Monitor" /name=MyNewPort /ip=192.168.1.5 /port=9100
PrnInst.exe /INSTALLPORTMON –inf=c:\temp\driver\ "/monitor=Advanced Port Monitor" /name=NewLanPort /ip=192.100.021.005 /port=9100
PrnInst.exe /INSTALLPORTMON /inf=c:\temp\driver\ "/monitor=Specific Port Monitor" /ip=192.100.1.1 /type=LAN
PrnInst.exe /INSTALLPORTMON "/monitor=Specific Port Monitor" /name=MySerialPort /type=COM /port=3 /baudRate=128000 /dataBits=8 /Parity=Even /flowControl=none /StopBits=2
PrnInst.exe /INSTALLPORTMON "/monitor=Specific Port Monitor" /name=MySerialPort2 /type=COM /port=1 /baudRate=19200 /dataBits=8 /Parity=none /flowControl=Hardware /StopBits=1.5
PrnInst.exe /INSTALLPORTMON "/monitor=Specific Port Monitor" /name=MyParallelPort /type=LPT /port=3