Archive: block flow until a condition is met


block flow until a condition is met
Hi all,
I hope this is not too trivial question.
I'd like to stop the installation process until a custom function return true, is there a way to poll the function repeteadly? Or is there a way to control the "Next" button in order to pass to the next page only if my condition is true?

thanks in advance


Just have a loop with a Sleep 1000 in it.

Loop:
Call Function
Pop $R0
StrCmp $R0 1 +3
Sleep 1000
Goto Loop


-Stu

Hi,
thanks for answering, this could be a way, I was wondering how to do that in a cleaner way, I mean check only when user wants to pass to the other page and stay in my page while the condition is false.

thanks again

bye


You can create a custom post function (that is called when the code is getting ready to leave the current page).


Page License "" "" LicensePost
...
Function LicensePost
Call MyFunction
Pop $0
StrCmp $0 1 +2
Abort
FunctionEnd