Re: VS.Net 2005: Uses regsvr32 with undocumented options and fails to register





Eugene Gershnik a écrit :
> > COM object registration requires administrative privileges.
>
> IIRC this is only if you register under HKCR. If you write directly to
> HKEY_CURRENT_USER\Software\Classes you can do it as any user. The component
> will be usable only by software running under the same account of course.
> Quick MSDN search brings this
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/hkey_classes_root_key.asp
Interesting, I wasn't aware of this solution.

> >> So to add pain to this access right bug,
> > It is not a bug! Would you like to have everybody able to install any
> > COM component on your machine? Is this used by IE when downloading an ActiveX?
>
> As long as this component is only visible to the same user, why not?
Hmmm... I would like to have few more security checks in this case...
What will be helpfull would be to have a parameter to DllRegisterServer
to specify which kind of registration is required (per user or machine
wide).

Arnaud
MVP - VC

.



Relevant Pages