Regasm Unregister Problem

Jan 24, 2011 at 8:00 AM
Edited Jan 24, 2011 at 8:01 AM

hey folks, I've got a question, related to the unregistration of the contextmenuhandler dll!

I'm using InnoSetup to register and unregister the contextmenuhandler dll via regasm.
During the uninstallation process, the unregister of the shell-extension runs (regasm.exe stuff) nicely but the explorer holds a feed to the corresponding dll which causes an "file is in use" error.
so it can not be deletet by the uninstaller.

how to tell the explorer to relelease the dll? maybe there is a way to tell the explorer to unload the extensions dll from the inside of the dll?
restarting exeplorer.exe is no option.
any thoughts?

Jan 28, 2011 at 7:13 AM
Edited Jan 28, 2011 at 8:34 AM

nobody had a similar problem? 

My research showed that this problem (i don't think it's a bug) just happens when you try to uninstall the tool right after installing it! When there's a break e.g. the user logs out or reboots the machine, the uninstall process runs fine and everything is cleaned.

Is there a way to fix this behaviour?