Page 1 of 1

cannot set a return value if dialog is canceled

Posted: Thu Oct 22, 2009 7:19 am
by alibaba
Hi,

I need to catch a return value from the setup for the parent process (also a setup). "0" indicates for me that the setup was installed correct. If I cancel the setup for instance from license dialog I cannot set any return values (terminate with exit code) because the script doesn't seem to move on:

Code: Select all

...
Display Dialog: licensecheck, wait for dialog to return (modal)
if Variable WIZARD Equals BACK
  GoTo Label: Welcome Dialog
  else
  if Variable WIZARD Equals CANCEL
    WriteLog "LICENSECHECK Canceled > terminate installation" to $LOGFILE$
    GoTo Label: Main Install
  end
end
label: ReadMe Information
...
In this example the log output function is not called, why?
I don't understand this.

Also the setup returns always "0" if the Cancel Setup Action is called. Where can I edit this Action? :?:

Posted: Thu Oct 22, 2009 8:22 am
by alibaba
OK my fault...Now I perform the Action "Return from dialog" for the cancel button- that does the trick.

But I'm still not able to define a return value if setup is canceled from language selection dialog...