vb6 xcopy 部署 [英] vb6 xcopy deployment

查看:39
本文介绍了vb6 xcopy 部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何将旧版应用程序 vb6(COM dll 的 ocx 和 exe)转换为使用 Regfree COM.

Can any one tell me how to convert an legacy application which is vb6 ( COM dll's ocx and exes) to use Regfree COM .

我尝试在 Visual Studio 中打开 dll 并创建清单文件,但其中一些 dll 出现错误.

I tried opening the dlls in visual studio and created manifest file, but some of the dlls it is giving error.

是否有任何工具可以帮助我完成此过程?

Is there any tools out there which will help me to do this process?

我尝试了 codeproject 中的一个名为 regsvr42 的工具,它没有完全创建清单.

I tried a tool from codeproject which is called regsvr42, which is not creating the manifest fully.

我使用了 PE explorer 之类的工具来获取所有类型库信息,但将它们转换为清单文件太困难了.

I used tools like PE explorer where I get all the typelib information , but converting them into manifest files is too difficult.

我们已经开始将它迁移到 .NET,几个月来我们必须部署它,如果它是基于 xcopy 的部署会更容易.

We have started migrating that to .NET, for some months we have to deploy it, it will easier if it is xcopy based deployment.

推荐答案

要创建清单文件,您可以尝试使用来自 http://mmm4vb6.atom5.com/.

To create manifest files you can try to use Make My Manifest from http://mmm4vb6.atom5.com/.

EDIT MMM 网站已关闭.我看到 here 作者遇到了问题与他们的托管,并提供了另一个位置来获取 Make My Manifest - 在此处下载.

EDIT The MMM website is down. I see here that the author was having trouble with their hosting and has provided another location to get Make My Manifest - download it here.

如果您可以控制对象的创建,则可以使用来自 http://www.thecommon.net 的 DirectCOM/10.html

If you can control creation of objects you can use DirectCOM from http://www.thecommon.net/10.html

请记住,如果使用的 DLL 或 OCX 之一正在使用 CreateObject 调用动态创建其他 COM 对象,则该引用将不会存储在 vbp 项目文件中,您将不会获得完整的清单文件.可能您必须在应用程序运行时捕获对象创建.Depends.exe 应用程序可以分析正在运行的应用程序并报告所有使用的 dll.不知道有没有工具可以找到额外的COM相关信息.

Keep in mind that if one of used DLLs or OCXs is creating other COM objects dynamically with CreateObject calls, that reference will not be stored in vbp project file and you won't get full manifest file. Probably you will have to catch object creations while the application is running. Depends.exe application can profile running application and report all used dlls. I don't know if there is tool that can find additional COM related information.

这篇关于vb6 xcopy 部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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