引用中的MLAPP是否必要? MLAPP.tlb中的“依赖项"位于在安装过程中导致错误 [英] Is MLAPP in reference necessary? The MLAPP.tlb in "dependencies" is causing error during installation

查看:288
本文介绍了引用中的MLAPP是否必要? MLAPP.tlb中的“依赖项"位于在安装过程中导致错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我有一个项目将Matlab称为COM服务器.
我定义:ML = CreateObject("Matlab.Application")
并使用ML.Execute("...")或调用ML.PutWorkspaceData("x","base",z)
等等.

最近,当我在VS2010 Win7中部署该项目并获取setup.exe,并在XP计算机上运行它时,
安装过程中出现错误:无法注册文件MLApp.tlb的类型库...
当我从安装程序项目中排除MLApp.tlb时,再次构建它,安装程序将在XP上运行且没有错误.

所以我只是想知道MLApp.tlb是否对于该应用程序是必需的.通过从安装程序项目中排除它的解决方法
可能仅是因为我已经在该XP上多次安装了该程序,并且该库已经注册,或者是其他原因. 感谢任何想法.Thx
-------------
更新:
该项目从vb6升级到.net,用于将ML定义为
ML =新的MLApp.MLApp
我想在升级过程中切换到ML = CreateObject("Matlab.Application")之后,事情发生了变化.
我确实记得在调试过程中,我不得不在.net项目中添加MLApp作为引用,以消除一些调试错误.

Hi guys, I have a project that calls Matlab as a COM server.
I define : ML = CreateObject("Matlab.Application")
and use ML.Execute("...") or Call ML.PutWorkspaceData("x", "base", z)
and such.

Recently when I deployed the project in VS2010 Win7 and get the setup.exe, and run it on an XP machine,
I got an error during installation : Could not register type library for file MLApp.tlb...
And when I exclude the MLApp.tlb from the installer project, build it again , the installer run on the XP with no errors.

So I''m just wondering whether the MLApp.tlb is necessary for the application. The workaround by excluding it from the installer project works
probably only because I have installed that program on that XP several times and the library was already registered, or some other reasons.
Any ideas appreciated.Thx
-------------
update:
The project was upgraded from vb6 to .net, and it used to define ML as
ML = New MLApp.MLApp
I guess after switching to ML = CreateObject("Matlab.Application") during the upgrade, things changed.
I do remember during debug that I had to add the MLApp as a reference in the .net project to get rid of some debug errors.

推荐答案

我正在猜测互操作性需要typelib封送与

所以,是的,您需要它

我会调查为什么它无法注册-再次,通常这是由于安装用户没有注册表写入权限引起的
I''m guessing the interop needs the typelib to marshal with

So, yes, you need it

I''d investigate why it failed to register - again, normally this is caused by the installing user not having registry write access


这篇关于引用中的MLAPP是否必要? MLAPP.tlb中的“依赖项"位于在安装过程中导致错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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