Dialog Button Set to Cancel Setup does not stop setup

Got a problem you cannot solve? Try here.
DaveG
Posts: 5
Joined: Mon May 08, 2006 2:42 pm

Dialog Button Set to Cancel Setup does not stop setup

Postby DaveG » Tue Jun 20, 2006 10:45 am

Am I assuming incorrectly that when you set a button on a dialog box action, in this case one that I have titled Exit, to "Cancel Setup" that it will prompt you "Do you really want to cancel" and then if "Yes" is selected it will exit the installer?

Because I have mine set that way and it just keeps on moving through the rest of the script as if nothing happened.

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Jun 20, 2006 1:33 pm

You have to check in your script for the return value of the Display Dialog command - the pre-built scripts illustrate this for you.
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

DaveG
Posts: 5
Joined: Mon May 08, 2006 2:42 pm

Postby DaveG » Tue Jun 20, 2006 2:03 pm

Ahh so InstallAware dialogs behave slightly differently from Wise Installer dialog builds in that there is no seperate dialog script (somewhat like a mini dialog include script) for each dialog.

So I want to build "If..Then" type logic directly after displaying a box for things like Cancel Setup or even launching an application in the script, correct?

Edit:

NM I see the return of the modal (Next, Back, Cancel) can be set in a variable.

But that brings me to another question, are these the only actions that can be "captured" into a variable?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Tue Jun 20, 2006 3:59 pm

Yes.
As for your second question. If you want to capture the button that was clicked on a dialog, you are not limited to those three. You can capture any button click.
If you want to set interactive behavior inside a dialog (ex: license agreement checkbox enables Next), or if you want to record values of input fields (ex: a custom text box), double-click the relevant control for that, and use the window that appears which provides you ample choices.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 180 guests