views:

605

answers:

4

So I wrote an ActiveX control but I can't install it anywhere when you are not administrator. Does anyone know a work-around for this (that doesn't involve an administrator)?

+1  A: 

There isn't one - you have to be an administration to do a lot of installation bits and pieces, and registering an ActiveX control is one of those.

blowdart
A: 

Maybe by using registration-free COM - with Side-by-Side assemblies (SxS).

Lucero
It doesn't seem to support vista: "Registration-free COM is a mechanism available on the Microsoft Windows XP (SP2 for .NET-based components) and Microsoft Windows Server 2003 platforms."
rogeriopvl
That's because this article is quite old (2005) and has not been updates. Google for Vista SxS and you'll see that it is also available.
Lucero
A: 

Since Internet Explorer 8 there are Non-Admin ActiveX Controls in Vista, it does not require user’s admin privileges. All you need is to modify .inf file:

//From MSDN: 

[Deployment]
    InstallScope=user

[contoso.dll]
    file-win32-x86=thiscab
    clsid={ABC01234-BA7A-101A-B57A-0000C0C3EFF0}
    FileVersion=4,20,0,6164
    RegisterServer=yes
    RedirectToHKCU=yes

Also, Active Directory allows ActiveX installation for User Group members, but I’m not sure this is your case…

Otherwise, the user must have admin rights.

Eugene
A: 

Hi, I have tried the same inf file for Activex registration on Vista. But it does not work. If I login as admin then it works fine. May I know what could be the reason?

sreelakshmi