如何安装使用ClickOnce一个COMClickOnce、COM

2023-09-03 13:54:54 作者:钟情是脸

我已经安装使用的TeeChart的ActiveX(一个COM我的windows应用程序 使用ClickOnce组件图表)。

I have installed my windows application that uses TeeChart ActiveX (a COM Component for charting) using ClickOnce.

如果我登记用REGSVR32 teechart8.ocx手动的TeeChart,我 应用程序工作正常。但我想,我需要使用安装应用程序 ClickOnce的。

If I register manually TeeChart using regsvr32 teechart8.ocx, my application works fine. But I want and I need to install the application using ClickOnce.

我怎么能这样做?

推荐答案

的ClickOnce只能复制文件。所以,你有以下这些选项:

ClickOnce can only copy files. So you have these options:

使用注册免费COM作为Jeff霍尔指出。这可能是最好的选择,如果你能做到这一点。 运行 REGSVR32 手动当你的的.exe 文件首次加载(之前尝试访问COM对象) 创建一个自定义的ClickOnce prerequisite包将安装COM对象 Use Reg-Free COM as Jeff Hall suggests. This is probably the best option if you can do it. Run regsvr32 manually when your .exe file first loads (before it tries to access the COM objects) Create a custom clickonce prerequisite package which installs the COM objects