WinDepends icon indicating copy to clipboard operation
WinDepends copied to clipboard

Module Search Order

Open i486 opened this issue 11 months ago • 2 comments

I think there are some real bugs related to Module Search Order. I’m posting this here since it’s related to the report above.

When WinDepends is launched and no file has been scanned yet, “The Application Directory” points to the WinDepends installation directory.

Image

After scanning a file, this changes to the actual application directory, which I assume is intentional.

Image

However, as shown in the screenshots above, The Application Directory is listed above the System Path section. Despite this ordering, %PATH% is still prioritized over the application directory during analysis.

For example, Kdiff3/bin is present in the system path:

Image

Originally posted by @i486 in #35

i486 avatar Dec 25 '25 02:12 i486

Check the https://github.com/hfiref0x/WinDepends/commit/6b0a753807a6baab6ce035578b09ef9f15fd02a9 commit. The logic of path resolution is changed. Now WinSxS resolution takes priority if the resolved file path belongs to WinSxS directory otherwise result is cached and only used when all other resolutions failed.

hfiref0x avatar Dec 25 '25 08:12 hfiref0x

Yeah, now dependencies in the application path are prioritized without moving "Application Directory" above WinSxS. Thanks!

i486 avatar Dec 27 '25 18:12 i486