Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows Vista / Security / November 2006

Tip: Looking for answers? Try searching our database.

Self-registering DLLs in Vista?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Adam Hilstad - 30 Nov 2006 02:32 GMT
Hi, I'm wondering how to allow a DLL to self-register when running Regsvr32
in Vista. I'd like to have an elevation prompt appear when Regsvr32 is run
for my DLL, but there seems to be a catch-22 invovled here: If I put the
self-registering behavior into a COM object, this would require that the COM
object first be registered before it can be created with
CoCreateInstanceAsAdmin. But registration is what I'm trying to accomplish
in the first place. The only other option I can think of is to have the DLL
run an executable as admin in order to indirectly perform its
self-registration. According to Microsoft's documentation, it looks to me
like the only way to request elevation within an executable is to either
launch another executable, or create a COM object. Is there a simpler option
that I'm missing here?

Thanks!
Josh - 30 Nov 2006 15:00 GMT
Well the obvious answer is to register the DLL's as part of your setup/MSI.
This would need to be elevated to facilitate the install anyway.

Is there a reason that won't work?

Signature

Josh

You never know what you might learn - http://windowsconnected.com

> Hi, I'm wondering how to allow a DLL to self-register when running
> Regsvr32 in Vista. I'd like to have an elevation prompt appear when
[quoted text clipped - 10 lines]
>
> Thanks!
Josh - 30 Nov 2006 19:24 GMT
I tried replying once before, but it didn't seem to make it.  so lets try
again.  The obvious answer is to make this action part of your setup.  Which
should prompt for elevation on install.

Signature

Josh
http://windowsconnected.com

Now with NNTP goodness!

> Hi, I'm wondering how to allow a DLL to self-register when running
> Regsvr32 in Vista. I'd like to have an elevation prompt appear when
[quoted text clipped - 10 lines]
>
> Thanks!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.