UnInstallLib doesn't work as expected
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?