Link to home
Start Free TrialLog in
Avatar of k6t
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#.
Avatar of SystemExpert
SystemExpert
Flag of United States of America image

Hi

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
ASKER CERTIFIED SOLUTION
Avatar of graye
graye
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BBK_
BBK_

public void CheckInstallation()
            {
                  RegistryKey rk = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall");
                  string[] Keys = rk.GetSubKeyNames();
                  foreach (string txt in Keys)
                  {
                        //
                        if (txt.ToUpper().IndexOf("MICROSOFT .NET FRAMEWORK 1.1") > -1)
                        {
                              MessageBox.Show("MICROSOFT .NET FRAMEWORK 1.1 Installed");
                              break;
                        }
                  
                  }
            }