Skip to content
⌘ NSIS Forum Archive

UnInstallLib doesn't work as expected

3 posts

SyRenity#

UnInstallLib doesn't work as expected

Hi.

I'm trying to show the user a warning to close the opened software, while uninstalling the DDLs that it uses. Now, as the manual says regarding the UnInstallLib, the NOREBOOT_PROTECTED should warn the user if the libraries are in use:
"Warns the user when the library is in use. The user will have to close applications using the library."

Below a snippet of my code that tries to uninstall the libraries:

!insertmacro UnInstallLib REGDLL NOTSHARED NOREBOOT_PROTECTED "$INSTDIR\BarLcher.dll"
!insertmacro UnInstallLib REGDLL NOTSHARED NOREBOOT_PROTECTED "$INSTDIR\CompBar.dll"


For some reason, the uninstallation simply continues until it's completed, leaving the libraries in use intact. Is this functionality is not completed yet? If yes, how then the software can be dectected, so the user could be warned?

Thanks!
SyRenity#
Hi.

Perhaps the developers of the Library.nsh will know the answer? How one can be contacted?
Joost Verburg#
This is indeed an error, currently only the error flag is set when the file cannot be deleted.

I'll try to find a solution.