looping and installoptions
http://forums.winamp.com/showthread....85#post1034685
This thread details some looping using installoptions. Unfortunately this person does not appear to be using the Modern UI, or at least is calling the InstallOptions DLL.
I am using MUI and custom pages, and I'm having a problem looping.
I have a text field which takes an email address in a custom page:
Function SetCustomEnterEmailHowever I then process the email address and use it to access a webpage (as you might have seen before in some of my posts).
!insertmacro MUI_HEADER_TEXT "Email Validation"
"Email validation is required to complete the installation."
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "emailpage.ini"
!insertmacro MUI_INSTALLOPTIONS_READ $${EMAIL} "emailpage.ini" "Field 1" "State"
The processing part is working fine, however I'm not sure how to loop back when I process that the email is invalid. I've tried doing it all inside the main section, but using "Call SetCustomEmailPage" results in very strange behavior.
I've tried moving everything into the custom page function, and using calls to check the internet connection and the email, but then i run into a problem.
Everything seems to work OK, but when you try to use the cancel button from the custom page I get the MUI_ABORTWARNING but then it goes and processes another function call and never exits.
Has anyone had experience using MUI and InstallOptions and looping around conditionally?