是不是可以注册一个.NET程序集的COM互操作而无需添加注册表项? [英] Is it possible to register a .NET assembly for COM interop without adding registry entries?

查看:346
本文介绍了是不是可以注册一个.NET程序集的COM互操作而无需添加注册表项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过部署一个点击VSTO .NET应用程序一次。该应用程序的主组件需要注册为COM Interop作为安装过程的一部分。我知道,这可以通过写code以执行REGASM assembly.dll /证来完成,但问题是,将安装我的应用程序的目标工作站没有管理权限,所以regasm失败时试图注册类型库。

我的问题是,我怎么可以登记自己的.NET程序集为COM互操作的时候,我没有管理权限?

解决方案

您可以使用COM组件免注册激活。我已经在通过点击一次部署一个应用程序中使用这个和它的工作好。这里有一些链接,让你开始:

基于.NET的组件

演练:手动部署ClickOnce应用程序

<一个href="http://blogs.msdn.com/b/g/archive/2008/06/06/sample-demonstrating-clickonce-deployment-of-com-component-implemented-in-managed-assembly-without-using-gac-or-registry-and-without-requiring-admin-rights.aspx"相对=nofollow>如何:ClickOnce部署与COM组件的托管程序集的非托管应用

I am deploying a .NET VSTO application via click once. The application's main assembly needs to be registered for COM interop as part of the installation process. I know that this can be done by writing code to execute "REGASM assembly.dll /tlb", but the problem is that the target workstations that will be installing my application don't have administrative rights, so the regasm fails when trying to register the type library.

My question is, how can I register my .net assembly for com interoperability when I don't have administrative access?

解决方案

You could use registration-free activation of COM components. I have used this in an application deployed via click-once and it worked well. Here are a few links to get you started:

Registration-Free Activation of .NET-Based Components

Walkthrough: Manually Deploying a ClickOnce Application

How To: ClickOnce deployment for unmanaged app with COM component in managed assembly

这篇关于是不是可以注册一个.NET程序集的COM互操作而无需添加注册表项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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