k6t
asked on
Check an application on computer.
How to check an installed application on computer, e.g I have installed .NET Frame 1.1 on my computer, how to check haven't it installed on my computer?. pplease help me, you can write in C#.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
public void CheckInstallation()
{
RegistryKey rk = Registry.LocalMachine.Open SubKey(@"S OFTWARE\Mi crosoft\Wi ndows\Curr entVersion \Uninstall ");
string[] Keys = rk.GetSubKeyNames();
foreach (string txt in Keys)
{
//
if (txt.ToUpper().IndexOf("MI CROSOFT .NET FRAMEWORK 1.1") > -1)
{
MessageBox.Show("MICROSOFT .NET FRAMEWORK 1.1 Installed");
break;
}
}
}
{
RegistryKey rk = Registry.LocalMachine.Open
string[] Keys = rk.GetSubKeyNames();
foreach (string txt in Keys)
{
//
if (txt.ToUpper().IndexOf("MI
{
MessageBox.Show("MICROSOFT
break;
}
}
}
Read this link from Microsoft MSDN
And Hope it will work for you
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/useragent.asp
Thanks