I want the install to stay on that page until either an open port is provided or the user uses the Cancel button to quit the installer.
I have this function partly working:
Not too elegant, but I thought it was sufficient. The trouble is that when a Cancel is selected, I get the warn dialog but selecting Yes still takes me back to the page. Also, pressing Back sends me back to the loop.
Function SetChoosePorts
choose_again:
;Set up the port config page
!insertmacro MUI_HEADER_TEXT "Manager Port and User Options" "Choose port, user and password"
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "portconfig.ini"
Call configure
pop $R7
StrCmp $R7 "1" choose_again proceed
proceed:
return
FunctionEnd
How can I break out of the loop correctly?
Thanks