打包COM加载项以进行部署 [英] packaging a COM addin for deployment

查看:93
本文介绍了打包COM加载项以进行部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Good Day All

Good Day All,

我不熟悉为COM级加载项打包Windows安装程序的正确技术(这是注册COM服务器的较高级版本[实现ID2Extesibility接口],并且可以一次分发到所有办公产品[word] ,excel等).我正在使用VS2010,并尝试使该插件在客户的计算机上工作.我相信我已经发现问题出在COM注册本身之内.似乎安装程序已决定引用我的开发二进制文件,而不是引用安装位置.如何在安装程序中更改此值?

I am unfamiliar with the proper techniques for packaging a windows installer for my COM level addin (This is the higher level version which registers a COM server [implements the ID2Extesibility interface] and can be distributed to all office products at once [word, excel, etc]). I am using VS2010 and am attempting to get the addin to work on a customer's computer. I believe that I have figured out the problem is within the COM registration itself. It seems that the installer has decided to reference my development binary and not the installed location. How can i change this value in the installer?

基本上是写 HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\CLSID\{MYclassID}\InprocServer32\{VER}\CodeBase作为"C:\MyVS10Install\MyProj\Debug\MyProjDLL.dll"

我如何将其更改为:

c:\Program Files\My Install Path\MyProjDLL.dll

??

任何帮助都会很棒,因为我可能不知道自己在寻找什么,因此找不到有关此信息的任何信息.

Any help would be great, its impossible to find any information on this because I probably don't know what I'm looking for.

我认为这是注册的一部分,因为该插件在我的计算机上可以正常运行,但不能安装在客户的计算机上

I am thinking it's the registration portion, because the addin works perfectly in my computer, but doesn't install on the customer's

推荐答案

似乎安装程序已决定引用我的开发 二进制文件而不是安装位置.我如何在 安装程序?

It seems that the installer has decided to reference my development binary and not the installed location. How can i change this value in the installer?

如果您认为是引起此问题的安装程序,请检查是否未对CodeBase进行硬编码以使其指向C:\MyVS10Install.您应该可以在msi数据库的注册表表中看到这一点

If you believe it is the Installer responsible for the problem, check that CodeBase is not hardcoded to point to C:\MyVS10Install. You should be able to see this in the Registry table of the msi database

如果硬编码指向该位置,请尝试使用[INSTALLDIR]\My Install Path\MyProjDLL.dll作为值

If it is hardcoded to point there, then try using [INSTALLDIR]\My Install Path\MyProjDLL.dll as the value

这篇关于打包COM加载项以进行部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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