Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Interop / March 2008

Tip: Looking for answers? Try searching our database.

Register an assmbly in the user part of registry

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PLS - 20 Mar 2008 03:56 GMT
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
Phil Wilson - 21 Mar 2008 21:10 GMT
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,
Signature

Phil Wilson
[MVP Windows Installer]

> regasm work fine to register an assembly for COM if you have write
> permission to HKLM. This usually requires Administrator privileges.
[quoted text clipped - 6 lines]
>
>    ++PLS

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.