As we know, when trying to run a program with some of its dependent DLL missing, the system would complain about "missing dll" error. The approach I'm using to avoid this is to pack all those dependent DLL into the installer, so that the software could run in other devices. Yet with the growing number of dependent DLL, manually search and copy DLL turns out to be such a chore, especially considering that these direct dependent DLL are likely have their own dependencies.
I have known dumpbin, Dependency Walker and Dependencies to track DLL dependencies. But they only list the dependent DLL. I was wondering is there any command/script/tool that could:
- recursivly search the dependent DLL of an executable
- copy those dependencies to a specified directory
- preferably, support exclude DLL from specified directories, like
C:\WINDOWS\system32\
To be honest, I don't know if this kind of thing ever exists. If it doesn't, how do you guys deal with this DLL issue?