|
Posted by Andrew Tucker [MSFT] on April 1, 2008, 11:55 pm
Please log in for more thread options
> Does anybody know how regsvr32 works?, I have an "almost home-developed ER=
P"
> and we cannot use it with "restricted" or "normal" user rights, it have to=
> work with local administrator rights, and all it's modules works over dlls=
,
> so when an update or correction is made to any module (dll) the ERP allway=
s
> run an Regsvr32 as procedure to register de "new" dll, is there any way to=
> restrict the compleate profile to normal user rights and let the ERP to ru=
n
> elevated rights as administrator only to register its own dll and no more?=
>
> Baruch Ortiz
Regsvr32 is no secret - you can download the full source code for it
at http://msdn2.microsoft.com/en-us/library/ms177531(VS.80).aspx The
gist of it is just a simple LoadLibrary and GetProcAddress on the
DllRegisterServer function in the DLL.
However, having the source to regsvr32 will not solve your problem.
The DLL that you are registering probably needs to write registry keys
to the HKLM hive and that requires admin privilege. I dont think you
will be able to install and register your app without elevating to
admin to complete this task.
|