How to register COM from VS Setup project?

可紊 提交于 2019-12-01 05:47:31

问题


I have marked my DLL as vsdraCOM, and I can see it in the registry after installing, but my application does not see the COM interface until I call RegAsm on it manually. Why could this be?

The COM registration does not work on Vista (confirmed myself) and on XP (confirmed by a colleague). Using Visual Studio 2005 on XP.


回答1:


Well, I have found a solution:

  1. Run RegAsm.exe with the /regfile option to generate the registry entries.
  2. Manually import the .reg file into the VS Setup project by viewing the registry, right clicking, and choosing "Import..."


来源:https://stackoverflow.com/questions/12807/how-to-register-com-from-vs-setup-project

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