Solved

Check an application on computer.

Posted on 2006-07-11
3
235 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
ID: 17080051
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
ID: 17085687
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_
ID: 17088823
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 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