简体   繁体   English

免费注册COM:VB6可执行文件引用VB6 DLL

[英]Registration free COM: VB6 Executable referencing VB6 DLL

So, I've got a single VB6 executable that references multiple VB6 COM DLLs. 所以,我有一个VB6可执行文件引用多个VB6 COM DLL。 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? 我是否有可能在运行中生成可执行文件的清单以及每个引用的DLL的清单? If so, then how? 如果是这样,那怎么样?

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 DLL注册为进程的一部分。

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. 注意:到目前为止,我发现的所有无reg的COM示例都涉及.NET互操作,这不是我正在做的事情的要求。

[EDIT] [编辑]

After performing some preliminary testing using Unattended Make My Manifest, I've found that its just not as user-friendly as I would like. 在使用Unattended Make My Manifest进行一些初步测试后,我发现它不像我想的那样用户友好。 And, since there's only a Sample.ini file for documentation I've had a pretty hard time understanding what should be put into that file compared to what doesn't need to go into that file. 而且,由于文档中只有一个Sample.ini文件,因此我很难理解应该放入该文件的内容与不需要进入该文件的内容相比。 Anyways, I've decided to craft manifests using my own tool. 无论如何,我决定使用自己的工具制作清单。 Hopefully, I'll get permission from my employers to release the code as open source. 希望我能获得雇主的许可,将代码作为开源发布。

*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. *就目前而言,如果您处于与我相同的位置,并且您希望创建一个使用并排/免注册COM交互的构建和生产环境,请知道它可能。 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.** 我建议首先用简单的DLL和消费者应用程序手工制作它们,然后逐步构建它,直到满足您的特定需求为止。**

We are using Unattended Make My Manifest in daily builds to create portable versions. 我们在日常构建中使用Unattended Make My Manifest来创建可移植版本。 It creates a single manifest that can be embedded to the executable with mt.exe 它创建了一个可以使用mt.exe嵌入到可执行文件中的清单

You could try Make my manifest which is a tool to create the manifest for a VB6 program. 你可以试试Make my manifest这是一个为VB6程序创建清单的工具。 I don't know whether it can run automatically as part of a build process. 我不知道它是否可以作为构建过程的一部分自动运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM