Archive: Set event from cancellation install


Set event from cancellation install
how set event when i am close installer click "Cancel"


i want delete install file after abort install in the folder "C:\WINDOWS\Prefetch\*.pf"


!define MUI_CUSTOMFUNCTION_ABORT onUserAbort

Function onUserAbort
!insertmacro DeleteInstallerFile

FunctionEnd
not help. file delete, but after close install they are replaced by new