I want to cancel the deinstaller when a DLL file is still openend by another app, like IE.
How can I detect this?
I used the following code:
# check if IE is locking 'hbxie.dll'
FileOpen $R0 "$INSTDIR\hbxie.dll" w
# File is locked.
but this only works when INSTALLING, not deinstalling.
Also I'd like to revert changes when an error occured and the user clicked "cancel".
Is this possible?
I searched the forum, but the only solution I came up with so far is the above makro, which doesn't work when removing the file.