Add printer and scanner driver support

A new "driver" provider installs Windows printer and scanner drivers through
the same catalog, UI and profiles as everything else: stage the package into the
driver store with pnputil, then register it with the print spooler so it turns
up in Add Printer.

Driver names are matched by PREFIX against the names read out of the package's
own INF files. Vendors stamp the version into the name -- "HP Universal Printing
PCL 6 (v7.1.0)" -- so an exact name in a catalog goes stale at the next release,
and a wrong one is unrecoverable without knowing what the package contains. When
a prefix matches nothing, the error lists the names the package actually
provides, which turns a dead end into a one-line fix.

INF parsing handles what real files are, not what the spec suggests: Windows
ships its own printer INFs as UTF-16LE and vendor packages follow suit, so
reading them as UTF-8 finds nothing at all. Verified against every prn*.inf on
a stock Windows install -- that test is what caught the encoding bug, since the
hand-written sample parsed fine.

Scanners are TWAIN/WIA rather than spooler drivers, so there is nothing to
register: leaving driver_match unset means stage-only. Detection falls back to
the uninstall entry, because a TWAIN data source has no spooler record.

Packages come from a driver share rather than the web. Vendor URLs are
version-pinned and several are EULA-gated, so nothing stable can be shipped in a
catalog; a UNC path or local folder is used in place with no download at all,
which is faster and is what a shop wants anyway. $DEPLOYR_DRIVERS names the
share, and an unset variable is reported by name rather than surfacing three
layers down as "no such file".

Ships universal drivers for HP, Xerox, Ricoh, Sharp, Canon, Kyocera, Konica
Minolta, Lexmark, Brother, Toshiba, Epson, Muratec and Zebra, plus scanner
packages for the fi series, ScanSnap, Canon DR, Epson, Brother, Visioneer and
Kodak Alaris. Profiles: @printers, @printers-all, @scanners.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Opus 5 committed 2026-08-26 17:47:24 -05:00
1 parent 7daceac077
commit 7ee270e128
14 files changed
+1738 -11

No files matched your search

+430
View File
@@ -1161,6 +1161,407 @@ apps:
detect:
registry: ["HWiNFO"]
# ----------------------------------------------------- printer drivers ---
#
# Printer driver packages are version-pinned and several vendors put theirs
# behind a click-through EULA, so there is no stable URL to ship. These
# entries point at your own driver share instead:
#
# setx /m DEPLOYR_DRIVERS \\fileserver\drivers
#
# Under it, one folder per package holding the extracted driver (the folder
# with the .inf files in it), or a .zip of the same. A folder is preferred --
# pnputil stages it directly with no unpacking step.
#
# driver_match is a PREFIX of the driver name as the spooler knows it, so the
# version suffix vendors stamp on ("(v7.1.0)") does not have to be tracked.
# If a match is wrong, deployr lists the names the package actually provides,
# which is how you correct the entry. See docs/PRINTERS.md.
- id: hp-upd-pcl6
name: HP Universal Print Driver (PCL 6)
description: HP's universal driver for LaserJet and OfficeJet fleets
homepage: https://support.hp.com/us-en/drivers
categories: [printer-driver]
aliases: [hp-upd, hpupd]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/hp/upd-pcl6
driver_match: HP Universal Printing PCL 6
detect:
printer_drivers: ["HP Universal Printing PCL 6"]
- id: hp-upd-ps
name: HP Universal Print Driver (PostScript)
homepage: https://support.hp.com/us-en/drivers
categories: [printer-driver]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/hp/upd-ps
driver_match: HP Universal Printing PS
detect:
printer_drivers: ["HP Universal Printing PS"]
- id: xerox-gpd-pcl6
name: Xerox Global Print Driver (PCL 6)
description: One driver for a mixed Xerox fleet
homepage: https://www.support.xerox.com/en-us/global-print-driver
categories: [printer-driver]
aliases: [xerox-gpd, xerox]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/xerox/gpd-pcl6
driver_match: Xerox Global Print Driver PCL6
detect:
printer_drivers: ["Xerox Global Print Driver PCL6", "Xerox Global Print Driver"]
- id: xerox-gpd-ps
name: Xerox Global Print Driver (PostScript)
homepage: https://www.support.xerox.com/en-us/global-print-driver
categories: [printer-driver]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/xerox/gpd-ps
driver_match: Xerox Global Print Driver PS
detect:
printer_drivers: ["Xerox Global Print Driver PS"]
- id: ricoh-upd-pcl6
name: Ricoh PCL6 Universal Driver
homepage: https://www.ricoh-usa.com/en/support-and-download
categories: [printer-driver]
aliases: [ricoh, ricoh-upd]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/ricoh/pcl6-upd
driver_match: RICOH PCL6 UniversalDriver
detect:
printer_drivers: ["RICOH PCL6 UniversalDriver", "RICOH PCL6 Universal"]
- id: ricoh-upd-ps
name: Ricoh PostScript Universal Driver
homepage: https://www.ricoh-usa.com/en/support-and-download
categories: [printer-driver]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/ricoh/ps-upd
driver_match: RICOH PS Universal Driver
detect:
printer_drivers: ["RICOH PS Universal Driver", "RICOH PS Universal"]
- id: sharp-ud
name: Sharp Universal Driver
description: Sharp's universal driver for MX/BP series MFPs
homepage: https://global.sharp/restricted/products/copier/downloads/select_us_driver.html
categories: [printer-driver]
aliases: [sharp]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/sharp/ud
driver_match: SHARP UD
detect:
printer_drivers: ["SHARP UD"]
- id: canon-generic-plus-ufr
name: Canon Generic Plus UFR II
homepage: https://www.usa.canon.com/support
categories: [printer-driver]
aliases: [canon, canon-ufr]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/canon/generic-plus-ufr2
driver_match: Canon Generic Plus UFR II
detect:
printer_drivers: ["Canon Generic Plus UFR II"]
- id: canon-generic-plus-pcl6
name: Canon Generic Plus PCL6
homepage: https://www.usa.canon.com/support
categories: [printer-driver]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/canon/generic-plus-pcl6
driver_match: Canon Generic Plus PCL6
detect:
printer_drivers: ["Canon Generic Plus PCL6"]
- id: kyocera-kx
name: Kyocera KX Driver
homepage: https://www.kyoceradocumentsolutions.us/en/support/downloads.html
categories: [printer-driver]
aliases: [kyocera]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/kyocera/kx
driver_match: Kyocera
detect:
printer_drivers: ["Kyocera"]
- id: konica-universal-pcl
name: Konica Minolta Universal PCL
homepage: https://www.konicaminolta.us/business/support/downloads
categories: [printer-driver]
aliases: [konica, konicaminolta]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/konica/universal-pcl
driver_match: KONICA MINOLTA Universal
detect:
printer_drivers: ["KONICA MINOLTA Universal"]
- id: lexmark-universal
name: Lexmark Universal Print Driver
homepage: https://support.lexmark.com/en_us/drivers.html
categories: [printer-driver]
aliases: [lexmark]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/lexmark/universal
driver_match: Lexmark Universal
detect:
printer_drivers: ["Lexmark Universal"]
- id: brother-universal
name: Brother Universal Printer Driver
homepage: https://support.brother.com/g/b/productsearch.aspx
categories: [printer-driver]
aliases: [brother]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/brother/universal
driver_match: Brother Universal Printer
detect:
printer_drivers: ["Brother Universal Printer"]
- id: toshiba-universal
name: Toshiba Universal Printer 2
homepage: https://www.toshibatec.com/support/
categories: [printer-driver]
aliases: [toshiba]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/toshiba/universal2
driver_match: TOSHIBA Universal Printer
detect:
printer_drivers: ["TOSHIBA Universal Printer"]
- id: epson-universal
name: Epson Universal Print Driver
homepage: https://epson.com/Support/Printers/sh/s1
categories: [printer-driver]
aliases: [epson]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/epson/universal
driver_match: EPSON Universal Print Driver
detect:
printer_drivers: ["EPSON Universal Print Driver"]
- id: muratec-mfx
name: Muratec MFX Driver
homepage: https://www.muratec.com/drivers-and-support/drivers/
categories: [printer-driver]
aliases: [muratec]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/muratec/mfx
driver_match: Muratec
detect:
printer_drivers: ["Muratec"]
notes: Muratec ships model-specific drivers rather than a universal one; point this entry at the package for the model on site.
- id: zebra-zdesigner
name: Zebra ZDesigner Driver
description: Label and receipt printers
homepage: https://www.zebra.com/us/en/support-downloads/printer-software.html
categories: [printer-driver]
aliases: [zebra]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/zebra/zdesigner
driver_match: ZDesigner
detect:
printer_drivers: ["ZDesigner"]
# ----------------------------------------------------- scanner drivers ---
#
# Scanners are TWAIN/WIA rather than spooler drivers, so there is nothing to
# register: staging the package into the driver store is the whole job. That
# is what leaving driver_match unset means.
#
# Most business scanners ship a vendor installer instead of a bare INF. For
# those, mirror the MSI and the entry installs it silently; an .exe needs the
# vendor's silent switches in silent_args. Detection is the uninstall entry,
# because a TWAIN data source has no spooler record to look up.
- id: paperstream-ip
name: PaperStream IP (Ricoh/Fujitsu fi series)
description: TWAIN/ISIS driver for fi-series production scanners
homepage: https://www.pfu.ricoh.com/global/scanners/fi/downloads/
categories: [scanner-driver]
aliases: [fujitsu-fi, fi-series, paperstream]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/fujitsu/paperstream-ip
kind: msi
detect:
registry: ["PaperStream IP"]
paths: ["%SystemRoot%/twain_64/*PaperStream*", "%SystemRoot%/twain_32/*PaperStream*"]
- id: scansnap-home
name: ScanSnap Home
description: Software and driver for ScanSnap desktop scanners
homepage: https://www.pfu.ricoh.com/global/scanners/scansnap/dl/
categories: [scanner-driver]
aliases: [scansnap]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/fujitsu/scansnap-home
kind: msi
detect:
registry: ["ScanSnap Home"]
- id: canon-dr-driver
name: Canon imageFORMULA DR Driver
description: TWAIN/ISIS driver for imageFORMULA DR document scanners
homepage: https://www.usa.canon.com/support
categories: [scanner-driver]
aliases: [canon-dr, imageformula]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/canon/dr-driver
kind: msi
detect:
registry: ["Canon DR", "CANON DR"]
paths: ["%SystemRoot%/twain_64/CANONDR*"]
- id: epson-scan2
name: Epson Scan 2
homepage: https://epson.com/Support/Printers/sh/s1
categories: [scanner-driver]
aliases: [epson-scan]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/epson/scan2
kind: msi
detect:
registry: ["Epson Scan 2", "EPSON Scan 2"]
- id: brother-iprintscan
name: Brother iPrint&Scan
homepage: https://support.brother.com/g/b/productsearch.aspx
categories: [scanner-driver]
aliases: [brother-scan]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/brother/iprintscan
kind: msi
detect:
registry: ["Brother iPrint&Scan", "iPrint&Scan"]
- id: visioneer-twain
name: Visioneer / Xerox DocuMate Driver
description: TWAIN driver for Xerox DocuMate and Visioneer scanners
homepage: https://www.visioneer.com/support/downloads
categories: [scanner-driver]
aliases: [documate, visioneer]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/xerox/documate
kind: msi
detect:
registry: ["Visioneer", "Xerox DocuMate"]
- id: kodak-alaris-scanner
name: Kodak Alaris Scanner Driver
description: TWAIN/ISIS driver for S2000 and i-series scanners
homepage: https://support.alarisworld.com/
categories: [scanner-driver]
aliases: [kodak, alaris]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/kodak/alaris
kind: msi
detect:
registry: ["Kodak Alaris", "Alaris Smart Touch"]
- id: hp-scan-extended
name: HP Scan and Capture
description: Scanning component for HP MFPs and ScanJets
homepage: https://support.hp.com/us-en/drivers
categories: [scanner-driver]
aliases: [hp-scan, scanjet]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/hp/scan
kind: msi
detect:
registry: ["HP Scan", "HP ScanJet"]
- id: sharp-twain
name: Sharp TWAIN Driver
description: Pull-scanning from Sharp MFPs
homepage: https://global.sharp/restricted/products/copier/downloads/select_us_driver.html
categories: [scanner-driver]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/sharp/twain
detect:
registry: ["Sharp TWAIN", "SHARP TWAIN"]
paths: ["%SystemRoot%/twain_64/Sharp*"]
- id: ricoh-twain
name: Ricoh TWAIN Driver
description: Pull-scanning from Ricoh MFPs
homepage: https://www.ricoh-usa.com/en/support-and-download
categories: [scanner-driver]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/ricoh/twain
detect:
registry: ["RICOH TWAIN", "Ricoh TWAIN"]
paths: ["%SystemRoot%/twain_64/Ricoh*"]
- id: konica-twain
name: Konica Minolta TWAIN Driver
homepage: https://www.konicaminolta.us/business/support/downloads
categories: [scanner-driver]
windows:
sources:
- provider: driver
url: $DEPLOYR_DRIVERS/konica/twain
detect:
registry: ["KONICA MINOLTA TWAIN", "KONICA MINOLTA Scan"]
# Profiles are named bundles: `deployr install @standard`.
profiles:
standard:
@@ -1201,3 +1602,32 @@ profiles:
- audacity
- handbrake
- gimp
# Printer and scanner bundles need DEPLOYR_DRIVERS pointed at your driver
# share -- see docs/PRINTERS.md.
printers:
- hp-upd-pcl6
- xerox-gpd-pcl6
- ricoh-upd-pcl6
- sharp-ud
printers-all:
- hp-upd-pcl6
- hp-upd-ps
- xerox-gpd-pcl6
- xerox-gpd-ps
- ricoh-upd-pcl6
- ricoh-upd-ps
- sharp-ud
- canon-generic-plus-ufr
- canon-generic-plus-pcl6
- kyocera-kx
- konica-universal-pcl
- lexmark-universal
- brother-universal
- toshiba-universal
- epson-universal
- muratec-mfx
scanners:
- paperstream-ip
- canon-dr-driver
- epson-scan2
- brother-iprintscan