Solved

Check an application on computer.

Posted on 2006-07-11
3
228 Views
Last Modified: 2010-04-16
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
Comment
Question by:k6t
3 Comments
 
LVL 10

Expert Comment

by:SystemExpert
Comment Utility
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
 
LVL 41

Accepted Solution

by:
graye earned 150 total points
Comment Utility
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
 
LVL 3

Expert Comment

by:BBK_
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now