Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 242
  • Last Modified:

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#.
0
k6t
Asked:
k6t
1 Solution
 
SystemExpertCommented:
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
0
 
grayeCommented:
That's a bit of "which came first, the chicken or the egg" problem...

You can't write an application in C# (which requires the .Net Framework) to check to see if the .Net Framework is installed.
0
 
BBK_Commented:
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;
                        }
                  
                  }
            }
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now