Archive: Possible ExecWait Bug


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}

ExecWait sets the error flag if the executed process doesn't return 0 and no output variable is specified. This is not a bug, it's a documented feature.


Okay, my bad. Thanks for the info!