Hi All,
I'm looking for a way to see if a driver is installed on a PC, it is for a USB to serial converter,
The problem is I want to check to see if there is a driver for it installed. At the moment I have the code
ServiceController[] scDevices = ServiceController.GetDevices();
foreach (ServiceController scTemp in scDevices)
lstDrivers.Items.Add(scTemp.ServiceType + "," + scTemp.ServiceName + "," + scTemp.DisplayName);
This appears to list several files that could be the driver I am looking for... (Microchip driver)
Glenn
Loading
VulpesPosted Jul 2, 2012, 10:08 AM
http://msdn.microsoft.com/en-us/library/windows/desktop/aa394354(v=vs.85).aspx
Here's some code to list the properties and their values for each driver. You'll need to add a reference to System.Management.dll to your project if it's not been added already:
Glenn PattonPosted Jul 2, 2012, 9:22 AM
VulpesPosted Jul 2, 2012, 9:04 AM
Are you saying this time that you're not in a position to install the driver, you just want to know whether it's installed already?
http://www.c-sharpcorner.com/forums/thread/177238/checking-for-a-usb-to-com-port-driver-using-C-Sharp.aspx