Using Inno Setup and want to show error/msgbox if one of the [Run] process does not return process code 0. I'm using it for authorization process, if authorization is not successful, i want to notify the user.

I have following:

Filename: "{pf32}\Common Files\Authorization.exe"; Parameters: " "{code:GetAuthorizationFilePath}" /s"; WorkingDir: "{tmp}"; Flags: skipifdoesntexist hidewizard; StatusMsg: "Authorizing License"; 

Returns me:

Process exit code:0

Of course, 0 is successful, but if it’s not 0 then I want to notify the user.

Is there a way to do this?

Edit
Report