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"
Detect Driver Installed
Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan
- Roman - Tracker Supp
- Site Admin
- Posts: 306
- Joined: Sun Nov 21, 2004 3:19 pm
Re: Detect Driver Installed
Hello,
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:
Or you can redirect the WMIC output to a file or to another utility for further parsing:
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
Code: Select all
wmic /output:wmi_output.txt printer where "DriverName='PDF-XChange 6.0'" get Name /value