Archive: Abort / Retry for Active File


Abort / Retry for Active File
I just want the user to be prompted that the file they are trying to install is already active (opened). I don't know that a FindWindow will work correctly because the window titles change with each version and class remains the same.

How can I just prompt the user to retry / abort the install?


If the name of the file will be static, you could try doing:


Section -
CopyFiles /SILENT "$INSTDIR\myfiletocheck.ext" "$PLUGINSDIR"
ClearErrors
Delete "$INSTDIR\myfiletocheck.ext"
IfErrors 0 next
#prompt user to take action
next:
SectionEnd