Archive: MessageBox MB_ABORTRETRYIGNORE not working?


MessageBox MB_ABORTRETRYIGNORE not working?
I'm unable to get my install script to compile with the following test function:

Function MBTest
MessageBox MB_ABORTRETRYIGNORE "Test" IDABORT GoTest IDRETRY GoTest IDIGNORE GoTest
GoTest:
Return
FunctionEnd

Am I doing something wrong or is MB_ABORTRETRYIGNORE broken? The compiler is giving a non-specific error.

Thanks.


As a followup to this, you can't use /SD <retval> with MB_ABORTRETRYIGNORE if you specify all three return values because the compiler expects 2-8 parameters and using all avaialable parameters for MB_ABORTRETRYIGNORE uses 10 parameters.


If you use MB_ABORTRETRYIGNORE you only need to supply two labels. If the third button is clicked the next instruction will get executed.

For example, if you want to jump to three labels:

MessageBox MB_ABORTRETRYIGNORE "A message" IDABORT Abort_clicked IDRETRY Retry_clicked
Goto Ignore_clicked

The manual makes it clear that no more than two labels can be used.