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

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

问题描述

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

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 文件导入 VS 安装项目中

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

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