免费注册COM:VB6可执行引用VB6 DLL [英] Registration free COM: VB6 Executable referencing VB6 DLL

查看:85
本文介绍了免费注册COM:VB6可执行引用VB6 DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我有一个VB6可执行文件,该可执行文件引用了多个VB6 COM DLL.我是否可以即时生成可执行文件的清单以及每个引用的DLL的清单?如果是这样,那又如何?

So, I've got a single VB6 executable that references multiple VB6 COM DLLs. Is it possible for me to generate, on-the-fly, a manifest for the executable as well as a manifest for each of the referenced DLLs? If so, then how?

我希望在构建过程中执行此操作,而不必在过程中注册COM DLL.

I would like to perform this operation as part of our build process without having to register the COM DLLs as part of the process.

注意:到目前为止,我发现的所有无注册COM示例都涉及.NET互操作,这并不是我正在做的事情.

NOTE: All the reg-free COM examples that I've found so far involve .NET interop, which is not a requirement for what I'm doing.

使用无人值守的制作我的清单"进行了一些初步测试之后,我发现它并不像我想要的那样友好.而且,由于只有一个Sample.ini文件用于记录文档,因此与该文件中不需要输入的内容相比,我很难理解该输入什么内容.无论如何,我决定使用自己的工具制作清单.希望我能得到我的雇主的许可,以将代码作为开源发布.

*就目前而言,如果您处于我所处的位置,并且想创建一个使用并排/无注册COM交互的构建和生产环境,只需知道它可能.我建议先使用简单的DLL和消费者应用程序手工制作它们,然后逐步在此基础上逐步构建,直到满足您的特定需求为止.**

*For now, if you're in the same position that I'm in and you would like to create a build and production environment that uses side-by-side/registration-free COM interactions, just know that its possible. I would recommend crafting them by hand with a simple DLL and consumer app at first, and then incrementally building on that until it suites your specific needs.**

推荐答案

我们正在使用无人看管的清单在日常构建中创建可移植的版本.它创建了一个清单,可以使用mt.exe嵌入到可执行文件中.

We are using Unattended Make My Manifest in daily builds to create portable versions. It creates a single manifest that can be embedded to the executable with mt.exe

这篇关于免费注册COM:VB6可执行引用VB6 DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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