在CAB文件中部署系统DLL

发布于 2024-08-03 07:50:11 字数 180 浏览 6 评论 0原文

我正在寻找一种在 ActiveX CAB 文件中部署系统 DLL 的方法。 CAB 无法更新系统文件,整个安装失败。完美,我想将 DLL 复制到 ActiveX 安装文件夹中。

我最好的建议(我还没有尝试过)是使用 INF 文件挂钩和一些独立安装程序,但我想知道还有其他方法吗?

任何其他想法将不胜感激......

I’m looking for a way to deploy a system DLL within my ActiveX CAB file. CAB cannot update system file and whole installation fails. Perfectly, I would like to copy the DLL into ActiveX installation folder.

My best suggestion (I didn’t try it yet) is using INF file hooks with some standalone installer, but I wonder is there another way?

Any other ideas will be appreciated…

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

赤濁 2024-08-10 07:50:11

将您的 dll 打包为主 ActiveX 控件的资源。使用您自己的代码将其写入文件。

恶意软件行业在这方面拥有丰富的经验,并且应该提供示例代码。

Pack your dll in as a resource of the main ActiveX control. Use your own code to write it to a file.

The malware industry has lots of experience doing this, and example code should be available.

笑着哭最痛 2024-08-10 07:50:11

您可以将 dll 安装到 ActiveX 安装文件夹中并动态加载 dll(使用 LoadLibrary)及其方法(使用 获取过程地址)。
这样您就可以控制从何处加载 dll 并使用本地副本而不是系统。

You can install the dll into the ActiveX installation folder and dynamically load the dll (using LoadLibrary) and its methods (using GetProcAddress).
This way you will be able to control from where to load the dll and use your local copy instead of the system.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文