Page 1 of 1

virtual text "Answer"

PostPosted: Sun Aug 23, 2009 6:46 am
by tapi
Hi, damon.

During install I want to ask user about continue or not install.
I created messagebox with two buttons(OK/Cancel).
And the next action is 'Exit'. Which condition I need to use to run this action only if 'Cancel' was selected?

I didn't find anything about virtual text "Answer".

Thanks.
tapi.

Re: virtual text "Answer"

PostPosted: Mon Aug 24, 2009 12:24 pm
by damon
The <%Answer%> virtual text is the default virtual text variable used for an Ask Yes or No condition. It's also the default for the Message Box action. If you look at the Message Box action you will see a Virtual Text property that defaults to "Answer". This is the virtual text variable that will store what button the user clicked on. If they clicked ok, then <%Answer%> will equal "ok". Etc...

Re: virtual text "Answer"

PostPosted: Wed Aug 26, 2009 4:52 am
by tapi
Thanks for answer,but it doesn't work.

In the 'Exit' action I created 'String equal' condition,that check if <%Answer%> equal to 'Cancel'

May be I do something wrong?

tapi.

Re: virtual text "Answer"

PostPosted: Wed Aug 26, 2009 1:20 pm
by damon
Use "cancel", all lowercase. String Equal is case-sensitive, and the <%Answer%> will always be the text of the button in all lowercase.

If you run your installer with a debug console and then type:

Code: Select all
debugging on


before you start installing, you can actually see the conditions do their comparisons and see why they fail when they do. It's a really good way to debug every step of your installer.

Re: virtual text "Answer"

PostPosted: Thu Sep 22, 2011 11:01 pm
by hardy
Hi,

I was also facing the same situation where i was getting the value "ok" for <%Answer%>,after doing some R&D,
i came up with the result that if you use virtual Text <%Answer%> some where before the string compare condition it would give you "ok" as the <%Answer%> value.

So i advice you make sure that <%Answer%> virtual text has not been used before that string compare condition.

Hope that resolve your issue.