Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I tell if a certain software is installed

Status
Not open for further replies.

angelleynes

Programmer
Dec 28, 2001
46
US
How can I tell if a particular software is installed
programmatically in either windows 95 or 98 or windows 2000 workstation?

thanks!
 
Ask the user? Seriously, there really isn't a &quot;single&quot; way to do this. Most programs can be located in the registry, but there is no single standard - you may need a different technique for each specific application (and/or version <s>).

You could search all the directories for a specific file name, but even that wouldn't guarentee it was &quot;installed&quot;. Also, since some programs allow installation on a shared server, it could take a very long time to scan for all the possibilities.

Have you got a specific program or small set of them that concern you?

Rick
 
It sounds like you have a particular piece of software in mind. What you will have to do is determine what kind of &quot;signature&quot; that software leaves on the computer during installation.

Does it create certain registry entries? You can scan for the registry entries to see if they exist.

Does it always install to a certain directory? You can use the FILE() command to see if a particular file exists. Similarly, the DIRECTORY() command can check for the presence of a specific directory. Both of these will only work if what you are searching for is always in the same place.

Does that help any?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top