Get install path of application on machine

Posted on 2007-07-20
Last Modified: 2013-11-07
How do I get the install path of a particular application that has been previously installed on a machine?
Question by:kayhustle
    LVL 13

    Expert Comment

    What operating system is this?
    LVL 1

    Author Comment

    Windows XP or Windows Server 2003
    LVL 13

    Accepted Solution

    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.

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

    Let me know if this helps.
    LVL 13

    Expert Comment

    kayhustle, have you been able to solve this problem?  Do you need further assistence?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    This video discusses moving either the default database or any database to a new volume.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    779 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

    14 Experts available now in Live!

    Get 1:1 Help Now