Hi All,
I need to check a driver version I have asked this on MSDN & The Code Project and each time got answers that I don't really understand. I want to check the version of a driver installed if it is not there install it, if it is there which version if it later than the version I am using leave it, if not update it.
I have so far managed to get the below code:
ServiceController[] scDevices = ServiceController.GetDevices();
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Device driver services on the local computer");
foreach (ServiceController scTemp in scDevices)
{
lstDrivers.Items.Add(scTemp.ServiceType + "," + scTemp.ServiceName + "," + scTemp.DisplayName);
}
}
This puts into a list box all the drivers installed on the machine I can see the driver I want and that appears to be all I can do, the Code Project have supplied a Dictionary based bit of code which I am at a loss on how to populate and use at <
http://www.codeproject.com/Messages/4299056/Re-Continuation-of-Correct-way-of-doing-installers.aspx> I really want a method that can be run while the program is being is installed and when the program is run to avoid the wheels coming off due to a missing or over written driver.
Thanks
Glenn