• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1097
  • Last Modified:

Get install path of application on machine

How do I get the install path of a particular application that has been previously installed on a machine?
0
kayhustle
Asked:
kayhustle
  • 3
1 Solution
 
josgoodCommented:
What operating system is this?
0
 
kayhustleAuthor Commented:
Windows XP or Windows Server 2003
0
 
josgoodCommented:
GetModuleFileNameEx is probably the key API you need.  It requires a handle to a process, which means you need to have the application running.

This link should help.
http://allapi.mentalis.org/apilist/GetModuleFileNameEx.shtml

The link contains a link to an example program for enumerating running processes.

Let me know if this helps.
0
 
josgoodCommented:
kayhustle, have you been able to solve this problem?  Do you need further assistence?
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

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