Click here to get back home

Regsvr32 HELP!

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Regsvr32 HELP! Baruch Ortiz 03-03-2008
`--> Re: Regsvr32 HELP! Andrew Tucker [...04-01-2008
Get Chitika Premium
Posted by Baruch Ortiz on March 3, 2008, 9:32 am
Please log in for more thread options
Does anybody know how regsvr32 works?, I have an "almost home-developed ERP"
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 allways
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 run
elevated rights as administrator only to register its own dll and no more?



Baruch Ortiz


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.


Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap