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.
MessageBox Cancel does not terminate
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: MessageBox Cancel does not terminate
Dear Arthur,
you may try as follow;
Regards
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
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
Re: MessageBox Cancel does not terminate
Worked like a charm. Thank you!
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: MessageBox Cancel does not terminate

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
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
Who is online
Users browsing this forum: No registered users and 251 guests