Check Driver Installed using C#.net

Posted by Naraayanan under C# on 5/4/2012 | Points: 10 | Views : 4017 | Status : [Member] | Replies : 3
Hi ,
How to check a Driver installed or Not installed in the System using C#.net?

Thanks in Advanced.

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/



Responses

Posted by: Vuyiswamb on: 5/4/2012 [Member] [MVP] [Administrator] NotApplicable | Points: 25

Up
0
Down
The Simple way to check that is if your driver installation copy certain files to your mahine. so you can go and check if one of those files exist

Thank you for posting at Dotnetfunda
[Administrator]

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Gaur1982 on: 5/4/2012 [Member] Starter | Points: 25

Up
0
Down
Try this to check Installed program or driver name by reading registry

String regstryKey = @"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall";

using(Microsoft.Win32.RegistryKey keyName = Registry.LocalMachine.OpenSubKey(regstryKey ))
{
foreach(string subKey in keyName.GetSubKeyNames())
{
using(RegistryKey subKey1 = keyName.OpenSubKey(subkey))
{
Response.Write(subKey1.GetValue("DisplayName"));
}
}
}


Gaurav Agrawal
http://www.planetofcoders.com/

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Naraayanan on: 5/4/2012 [Member] Starter | Points: 25

Up
0
Down
Hi friends,
Thanks.I am developing a COM Port Project.So It creates an .ini file in the windows folder.different file name are created in windows\ini folder (like oem8.ini,oem9.ini). So how can i get? Please help me.

Regards,
Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
http://abaprocker.blogspot.com/

Naraayanan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response