Detect Driver Installed

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
Posts: 84
Joined: Mon Sep 20, 2004 4:27 pm
Location: Phoenix, AZ

Detect Driver Installed

Post by glima » Thu Jun 08, 2017 4:21 pm

Is there a way to detect if the printer driver (V6) has already been installed on the system. I don't want to run the install again and have the customer need to reboot when they install re-install our application. We use the PDFX6SA_sm.exe to install the printer.

PDFX6SA_sm.exe /VERYSILENT /NORESTART /COMPONENTS="pdfSaver,PDF-XChange driver" /AutoUnload:3 /PNAME="Bates PDF Printer 2017" /DRVwoPRN"

User avatar
Roman - Tracker Supp
Site Admin
Posts: 278
Joined: Sun Nov 21, 2004 3:19 pm

Re: Detect Driver Installed

Post by Roman - Tracker Supp » Thu Jun 08, 2017 10:33 pm


Probably the most portable way (across al supported WIndows versions) to this would be to use WMIC - this is a command line utility to access the system configuration through WMI interface.
This is a sample batch file that detects if any printer with a given driver name is installed:

Code: Select all

wmic printer where "DriverName='PDF-XChange 6.0'" get Name
if errorlevel 1 echo No printers found based on the specified driver
Or you can redirect the WMIC output to a file or to another utility for further parsing:

Code: Select all

wmic /output:wmi_output.txt printer where "DriverName='PDF-XChange 6.0'" get Name /value
Tracker Software Products

Please ZIP any files uploaded to this forum or they will not be posted !
You may also use a RAR or 7Z archive format

Post Reply