有没有办法搜索和复制所有的 DLL 依赖项? [英] Is there any way to search and copy all the DLL dependencies?

查看:48
本文介绍了有没有办法搜索和复制所有的 DLL 依赖项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

正如我们所知,当试图运行一个缺少某些依赖 DLL 的程序时,系统会抱怨缺少 dll"错误.我用来避免这种情况的方法是将所有这些依赖 DLL 打包到安装程序中,以便软件可以在其他设备上运行.然而,随着依赖DLL的数量不断增加,手动搜索和复制DLL变得如此繁琐,尤其是考虑到这些直接依赖的DLL很可能有自己的依赖.

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.

我知道 dumpbinDependency WalkerDependencies 来跟踪 DLL 的依赖关系.但是他们只列出了依赖的 DLL.我想知道是否有任何命令/脚本/工具可以:

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:

  1. 递归搜索可执行文件的依赖 DLL
  2. 将这些依赖复制到指定目录
  3. 最好支持从指定目录中排除DLL,例如C:\WINDOWS\system32\

老实说,我不知道这种事情是否存在过.如果没有,你们如何处理这个 DLL 问题?

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?

推荐答案

我一直在使用 InstallAware Express CodeGear Edition 下这个链接 http://cc.embarcadero.com/Item/24997

I have been using InstallAware Express CodeGear Edition under this link http://cc.embarcadero.com/Item/24997

它不再继续.但是那里有一个菜单,它可以找到并定位依赖的 dll 或 bpl 文件,然后您创建一个快速而肮脏的安装项目,所有项目都复制到一个文件夹中.比您可以将它们用于您的应用程序.这不再适合我,我也在为此寻找另一种工具.如果你发现了什么,请告诉我.

It was no longer continued. But there is a menu there that it finds and locates the depended dll or bpl files, and you create a quick and dirty install project, all copied into one folder. Than you can use them for your application. This is no longer works for me, and I am also looking for another tool for this. If you find something please let me know.

这篇关于有没有办法搜索和复制所有的 DLL 依赖项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆