Possible ExecWait Bug
I have two installers. The first one will launch the second one if a link on a InstallOptions page is clicked. Using ExecWait to launch the second installer will set the error flag when the 'X' is used to close the second installer only when using the second snippet below.
Not sure if this is a bug or not, but I thought that I'd report it.
; doesn't set error flag when 'X' is used to close EULA.exe
Push $0
ClearErrors
ExecWait 'EULA.exe' $0
${If} ${Errors}
MessageBox MB_OK "Error"
${EndIf}
Pop $0
; sets error flag when 'X' is used to close EULA.exe
ClearErrors
ExecWait 'EULA.exe'
${If} ${Errors}
MessageBox MB_OK "Error"
${EndIf}