virtual text "Answer"

This forum has been archived and is no longer active.

The new forum is located at:

https://sourceforge.net/apps/phpbb/installjammer/

You may continue to view and search the topics in this forum, but no new posts can be created.

virtual text "Answer"

Postby tapi » Sun Aug 23, 2009 6:46 am

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.
tapi
 
Posts: 16
Joined: Tue Jun 16, 2009 7:58 am

Re: virtual text "Answer"

Postby damon » Mon Aug 24, 2009 12:24 pm

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...
To file an issue, please visit:

http://tracker.installjammer.com/
damon
Site Admin
 
Posts: 4404
Joined: Sat Sep 15, 2007 2:46 pm

Re: virtual text "Answer"

Postby tapi » Wed Aug 26, 2009 4:52 am

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.
tapi
 
Posts: 16
Joined: Tue Jun 16, 2009 7:58 am

Re: virtual text "Answer"

Postby damon » Wed Aug 26, 2009 1:20 pm

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.
To file an issue, please visit:

http://tracker.installjammer.com/
damon
Site Admin
 
Posts: 4404
Joined: Sat Sep 15, 2007 2:46 pm

Re: virtual text "Answer"

Postby hardy » Thu Sep 22, 2011 11:01 pm

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.
Hardy...
hardy
 
Posts: 15
Joined: Mon Feb 28, 2011 3:08 am


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest