How to Install a COM using ClickOnce

别来无恙 提交于 2019-12-21 05:38:13

问题


I have installed my windows application that uses TeeChart ActiveX (a COM Component for charting) using 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.

How can I do that?


回答1:


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

  • 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



回答2:


Use Reg-Free COM. Check out this MSDN article



来源:https://stackoverflow.com/questions/879788/how-to-install-a-com-using-clickonce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!