Reading .EXE dependencies

Posted on 2005-04-18
Medium Priority
Last Modified: 2010-04-24
Is there a way to read the dependencies from an executable file?
Question by:SonicX_BlueBlur
  • 2
  • 2

Expert Comment

ID: 13810066
Do you mean programmatically, or with a tool?

Depends.exe (included with Visual Studio) will show all static dependencies (DLLs linked at build time).

However, the executable may also have dynamic dependencies (e.g. DLLs loaded manually at runtime, COM servers instantiated through code, etc).
There is no tool to discover these, but you may use something like Process Explorer (http://www.sysinternals.com/ntw2k/freeware/procexp.shtml) to monitor the various modules loaded by the executable at runtime. Of course, it will only show modules actually loaded. So, if you do not exercise a certain code path that would result in the loading of an external module, it will not show up.


Author Comment

ID: 13810159
Programmatically, actually. I'm making an installer, and part of it is a script creator (as the installer is script-based). In my view, the creator of the program shouldn't have to deal with dependencies defined by the program itself, just the ones they define themselves.

Accepted Solution

rcarlan earned 250 total points
ID: 13810925

Author Comment

ID: 13974621
Sorry about giving a C, but that was just too much documentation for me to go through, with everything else I need to do. I'll keep it in mind, though.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

The following diagram presents a diamond class hierarchy: As depicted, diamond inheritance denotes when two classes (e.g., CDerived1 and CDerived2), separately extending a common base class (e.g., CBase), are sub classed simultaneously by a fourt…
In Easy String Encryption Using CryptoAPI in C++ (http://www.experts-exchange.com/viewArticle.jsp?aid=1193) I described how to encrypt text and recommended that the encrypted text be stored as a series of hexadecimal digits -- because cyphertext may…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

830 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