Does anyone know of a tool or procedure that will register an assembly
for COM Interop, just like regasm, except that it puts the generated
registry keys under HKEY_CURRENT_USER\Software\Classes?
In other words, I want to register an assembly for COM so that the
registration does not require Administrator privileges and is only
visible for the current user.
There has to be a way.
++PLS
Phil Wilson - 26 Feb 2008 22:08 GMT
If you do this with:
1) An assembly marked as vsdraCOM in the properties of the assembly in the
setup project.
2) A setup project that you install for "just me".
then it works as you want it.
The reason it works is that internally Visual Studio generates and imports a
reg file for the class registration and these raw registry entries are set
to follow the type of install (Everyone or just me for HKLM or HKCU). This
is the way to get assemblies registered anyway, except that developers tend
to go down a regasm or RegistrationServices coding path.
This doesn't register typelib info (which isn't per user anyway) so as long
as you don't need typelib info this technique should work.

Signature
Phil Wilson
[MVP Windows Installer]
> Does anyone know of a tool or procedure that will register an assembly
> for COM Interop, just like regasm, except that it puts the generated
[quoted text clipped - 7 lines]
>
> ++PLS