How to register COM from VS Setup project?

2020-03-26 07:42发布

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.

标签: com registry
1条回答
兄弟一词,经得起流年.
2楼-- · 2020-03-26 08:15

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..."
查看更多
登录 后发表回答