Archive: how to unload a dll from memory


how to unload a dll from memory
at last i tried some methods to free dll from memory, but not
everytime successful.
unregdll or regsvr32 /u dont work - the dll are still not deletable.

furthermore i am not familiar to system:free (system.dll) and
how far it is usable for me.

it must be possible because i had an uninstaller here which
did it.

please help.


Could you at least say what you tried with details (the code you used to unload the plugin with no success)?


the test was on turbo searcher 3.0 -> tsext.dll

regdll ...
made the reg-entries
-> kontext menu in explorer

deinstall (with nsis script):
unregdll tsext.dll
regsvr32 /u tsext.dll (yes - it has this routines)
removed the rest reg-entries

delete tsext.dll - no effort - i can not delete this $%&§

ok, i installed TS 3.20 in same folder (original setup from
company -> Inno Setup), used it, and deinstalled it - and anything was gone incl the not deleteable files.

so there must be something i dont know.


*up* thx :)


how to force Windows Explorer to free a loaded dll
Did anybody find a solution to the problem described below in my message?

I am in the same situation: during install I register a dll which adds context menu entries to Windows Explorer. Everything works fine. During uninstall I unregister the dll but I cannot remove it; Windows Explorer does not free/unload the dll.

Is there any work around for this?
Thanks,

--daniel

Originally posted by Brummelchen
the test was on turbo searcher 3.0 -> tsext.dll

regdll ...
made the reg-entries
-> kontext menu in explorer

deinstall (with nsis script):
unregdll tsext.dll
regsvr32 /u tsext.dll (yes - it has this routines)
removed the rest reg-entries

delete tsext.dll - no effort - i can not delete this $%&�

ok, i installed TS 3.20 in same folder (original setup from
company -> Inno Setup), used it, and deinstalled it - and anything was gone incl the not deleteable files.

so there must be something i dont know.

You can use the library.nsh for that (Check Appendix B.3 in the NSIS docs).

I also see that this is a very old thread. (there's my posting and everything :o)