![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Detecting if an application is installed on a system I have a series of applications that assume other applications are installed. Is there a way to detect the installation of a specific application? Any help is greatly appreciated. |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Detecting if an application is installed on a system There is no general rule to identifying whether a particular application is installed. Some broadcast their availability by a registry key, others don't. You may want to post the software title you are testing for and someone may recognize a test that will identify the presence of it on the system. "Greg Smith" wrote: Quote: > I have a series of applications that assume other applications are > installed. Is there a way to detect the installation of a specific > application? > > > > Any help is greatly appreciated. > > > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Detecting if an application is installed on a system Family Tree Mike wrote: Quote: > There is no general rule to identifying whether a particular application is > installed. Some broadcast their availability by a registry key, |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Detecting if an application is installed on a system " Quote: > > These do. How would you identify the app? situation. Your question is a little bit from 1980, now you have to be more precice in what your searching and create proper security rigths to see that. Cor |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Detecting if an application is installed on a system "Greg Smith" wrote: Quote: > > These do. How would you identify the app? > install path to it: string key = @"SOFTWARE\JavaSoft\Java Runtime Environment"; Microsoft.Win32.RegistryKey keyJRE = Microsoft.Win32 .Registry .LocalMachine .OpenSubKey (key, false); string version = (string) keyJRE.GetValue("CurrentVersion"); Microsoft.Win32.RegistryKey keyJREactive = keyJRE.OpenSubKey(version); string javahome = System.IO.Path.Combine((string) keyJREactive.GetValue("JavaHome"), @"bin\java.exe"); return javahome; |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Detecting if an application is installed on a system Sorry... Add checks for whether the keys exist of course! "Family Tree Mike" wrote: Quote: > "Greg Smith" wrote: > Quote: > > > > These do. How would you identify the app? > > > For example, the following code finds the current version of Java, and the > install path to it: > > string key = @"SOFTWARE\JavaSoft\Java Runtime Environment"; > > Microsoft.Win32.RegistryKey keyJRE = > Microsoft.Win32 .Registry .LocalMachine .OpenSubKey (key, false); > > string version = (string) keyJRE.GetValue("CurrentVersion"); > > Microsoft.Win32.RegistryKey keyJREactive = keyJRE.OpenSubKey(version); > > string javahome = > System.IO.Path.Combine((string) keyJREactive.GetValue("JavaHome"), > @"bin\java.exe"); > > return javahome; > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Detecting system shutdown. | PowerShell | |||
| Detecting system shutdown | PowerShell | |||
| System is not detecting Mic | Vista hardware & devices | |||
| System stops detecting mic | Vista networking & sharing | |||
| detecting changes to the system | Vista account administration | |||