MessageBox Cancel does not terminate

Got a problem you cannot solve? Try here.
Arthur
Posts: 12
Joined: Thu Sep 13, 2012 12:40 pm

MessageBox Cancel does not terminate

Postby Arthur » Fri Jul 01, 2016 1:01 pm

I am testing my installer and I have a bunch of MessageBoxes with "OK , Cancels" for displaying different stuff.

When I click on "Cancel", the script continues. How do I actually have it terminate?

Thank you in advance.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MessageBox Cancel does not terminate

Postby FrancescoT » Fri Jul 01, 2016 2:13 pm

Dear Arthur,

you may try as follow;

Code: Select all

Set Variable MY_RESULT to
MessageBox: $TITLE$, Ok or Cancel?
if Variable MY_RESULT Equals CANCEL
  Terminate Installation
end

Code: Select all

~InstallAware Clipboard Data~
~End~
~{2266851A-1F63-4C84-9BEA-5F1D92007846}~
~Terminate Install~
~{90124340-10B0-4F6A-AAE4-6E6654FEDDD6}~
~If~
~{EF40B26B-3397-47C6-AA29-132BF949C68E}~
~MY_RESULT~
~0~
~CANCEL~
~FALSE~
~MessageBox~
~{15819778-D870-4A5A-B828-A4517C4DEFA8}~
~$TITLE$~
~Ok or Cancel?~
~0~
~2~
~MY_RESULT~
~Set Variable~
~{45651977-2065-4D2A-B204-B922F81BE420}~
~MY_RESULT$MYAH$MYAH$FALSE~
~~


Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

Arthur
Posts: 12
Joined: Thu Sep 13, 2012 12:40 pm

Re: MessageBox Cancel does not terminate

Postby Arthur » Fri Jul 01, 2016 2:32 pm

Worked like a charm. Thank you!

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: MessageBox Cancel does not terminate

Postby FrancescoT » Mon Jul 04, 2016 11:40 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 151 guests