lucasg / Dependencies

A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
MIT License
8.9k stars 725 forks source link

Can't add search library BEFORE user's PATH? #56

Open sjs5454 opened 5 years ago

sjs5454 commented 5 years ago

Need to ensure that private lib directories are searched BEFORE finding the same lib in the user's windows PATH.

sjs5454 commented 5 years ago

I distribute executable software and want to test that I ship all necessary libraries, which are in a lib directory accompanying my executable. I can add that lib to Dependencies search locations, but if my own windows PATH has another copy of the same lib Dependencies picks up that one (unlike Dependency Walker which had the flexibility to order the search tree completely).

In my case, I have a Qt application, and I ship the Qt5core.dll and other dll.s. However, my Miktex installation also has the Qt5 dll's, and Dependencies shows those rather than the ones I have in my distribution's lib folder, which come from my mingw64 system. So I can't be sure by running Dependencies that my distribution contains all the needed libs for my users. This can lead either to an instant crash for them or result in their system likewise finding other, potentially incompatible, versions of the dll's elsewhere in their system.

Many thanks for re-vitalizing DependencyWalker. Steve