如何从VS安装项目注册COM? [英] How to register COM from VS Setup project?

查看:278
本文介绍了如何从VS安装项目注册COM?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经标记我的DLL为vsdraCOM,我可以看到它在注册表中安装后,但我的应用程序看不到COM接口,直到我手动调用RegAsm。为什么会这样?

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?

COM注册在Vista(确认自己)和XP(由同事确认)上不起作用。
在XP上使用Visual Studio 2005.

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

推荐答案

好,我找到了一个解决方案:

Well, I have found a solution:


  1. 使用/ regfile选项运行RegAsm.exe以生成注册表项。

  2. 手动将.reg文件导入通过查看注册表,右键单击并选择导入...
  3. 来创建VS安装项目。
  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..."

这篇关于如何从VS安装项目注册COM?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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