cannot set a return value if dialog is canceled

Got a problem you cannot solve? Try here.
alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

cannot set a return value if dialog is canceled

Postby alibaba » Thu Oct 22, 2009 7:19 am

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? :?:

alibaba
Posts: 314
Joined: Fri Jun 26, 2009 8:46 am
Location: Thuringia, Germany

Postby alibaba » Thu Oct 22, 2009 8:22 am

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...


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 71 guests