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:
but this only works when INSTALLING, not deinstalling.# check if IE is locking 'hbxie.dll'
ClearErrors
FileOpen $R0 "$INSTDIR\hbxie.dll" w
${If} ${Errors}
# File is locked.
${Else}
FileClose $R0
${EndIf}
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.