Archive: Cycle + Cancel button = does not work


Cycle + Cancel button = does not work
  Hello All.
Faced with the problem.
In the script uses the cycle of reading data from a file:


........

!define MUI_PAGE_CUSTOMFUNCTION_SHOW cancel_ON

Section ""
>StrCpy $2 "0"
>next:
IntOp $2 $2 + 1
ReadINIStr $R1 '$EXEDIR\data.ini' 'FILE $2' 'NAME'
ReadINIStr $R2 '$EXEDIR\data.ini' 'FILE $2' 'PATH'
ReadINIStr $R5 '$EXEDIR\data.ini' 'FILE $2' 'URL'
ReadINIStr $R3 '$EXEDIR\data.ini' 'FILE $2' 'CRC'
ReadINIStr $R4 '$EXEDIR\data.ini' 'FILE $2' 'END'
StrCmp $R4 "END" next
DetailPrint "OK"
>quit:
>SectionEND

>Function cancel_ON
GetDlgItem $R0 $HWNDPARENT 2
EnableWindow $R0 1
FunctionEnd
>
As a result ...
Clicking on the Cancel button, it does not work the first time (have to press several times)

What problem?

I'm not sure you can cancel an installation in progress just by enabling the cancel button. (Unless it was added sometime in the last year--I haven't been following the release notes that closely.)

You might find the following thread helpful:
http://forums.winamp.com/showthread....hreadid=277190


Originally posted by Comperio
I'm not sure you can cancel an installation in progress just by enabling the cancel button. (Unless it was added sometime in the last year--I haven't been following the release notes that closely.)

You might find the following thread helpful:
http://forums.winamp.com/showthread....hreadid=277190
Thank.