keyongtech


  keyongtech > dotnet.framework.* > dotnet.framework.interop > 03/2008

 #1  
03-20-08, 02:56 AM
PLS
regasm work fine to register an assembly for COM if you have write
permission to HKLM. This usually requires Administrator privileges.

I would like to deploy a couple of assemblies to users that do not have
Administrator privileges. I would like them to be registered under
HKCU/Software/Classes rather than under HKLM\Software\Classes.

Is there a tool available that will do this? Regasm will not.

++PLS
 #2  
03-21-08, 08:10 PM
Phil Wilson
An MSI setup will do this when you install it for the current user (just me
in a Visual Studio setup) assuming that you do the registration in the
recommended way, which is to have the registration entries in the MSI file
rather than created by code at install time. If you were to use a Visual
Studio Setup&Deployment project, you'd do this by having the vsdraCOM value
in the Register property for the assembly. This captures the registry data
and basically writes it to HKCU on a per-user install and HKLM on a
per-system install.

Alternatively, it's not all that difficult to know what registry entries are
required, although it's tedious if there are a lot. Your class registration
in the registry should be pretty obvious if you look in HKCR, so you just
need to export that and base it on HKCU instead. But that's not a tool,
sorry,
Similar Threads
Register Web Part

Hi All, Anyone can help me. how to process of registering a Web Part on the portal with example. Thanks in Advance Aambal

Register web part as safe (episode II

I have a web part and cab project. When I install it using stsadm without the -globalinstall flag, I can add the web part to a page but it cannot get all of the permissions...

Register web part as safe

I'm getting the "A Web Part ... cannot be displayed or imported because it is not registered on this site as safe." error when trying to add a web part I developed and I'm...

Reflection on my own assmbly

I have defined a public enum in my assembly and I am trying to have access to it through reflection: Type theType = Type.GetType("MyAssemblyName.ParameterTypeEnum"); but I...

print all or part of the account register

Is there a way to print part or all of the account register?


All times are GMT. The time now is 02:58 AM. | Privacy Policy