Sign in to follow this  

unregistering a .dll ?

This topic is 4859 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm completely new to COM with ATL and DLL's. But I'm writing a shell extension. Been following some tuts, and they come with a .rgs file as a resource in the solution (VS). A registration script. It associates a filetype with the dll, extending some functionality in Explorer. I don't understand when this script ran, but now my files are associated. But ... how do I unregister it? Thanx

Share this post


Link to post
Share on other sites
You use regsvr32

In a command prompt (start -> run, type "cmd"), type regsvr32 /u "name"

where name is the name of the dll you want to unregister (with full path probably)

Share this post


Link to post
Share on other sites
thx!

Do I have to do something special in my code to support that? I mean, if the .rgs file removes some key in the register how does it put that back? Is that automagicly supported?

If I want do distribute my .dll, would I need to make a installer (so the uninstaller does what you said) or is there some easier for the user to have and remove my .dll?

I've seen stuff like DllRegisterServer() and DllUnregisterServer(). What happens if you overload them? Are they run by regsvr32 /u ? Or do windows run those by itself?

[Edited by - Seriema on August 25, 2004 6:49:11 PM]

Share this post


Link to post
Share on other sites
The rgs file is a resource, which means it gets embedded in the DLL. If you're using ATL via the wizard in VC, you don't need to do anything special to support it. If you're using ATL on your own, then I have no idea what you'd need to do.

If you distribute your DLL, you will need something to register and unregister it for the user. To register it, the command is just regsvr32 without the /u

I don't know anything about the underlying COM interface (which is what Dll(Un)RegisterServer are part of). Really, it is extremely difficult to find information about dealing with COM when not using ATL or the like to handle everything for you.

Share this post


Link to post
Share on other sites

This topic is 4859 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this