Indigo Rose Software

Go Back   Indigo Rose Software Forums > Setup Factory 8.0 > Setup Factory 8.0 Discussion

Reply
 
Thread Tools Display Modes
  #1  
Old 10-13-2008
Ishana's Avatar
Ishana Ishana is offline
Forum Member
 
Join Date: Dec 2004
Location: Omaha, Nebraska
Posts: 8
Conditional Script for Multiple Variables in File Properties

I see posting on how to define a single variable with one screen of radio buttons...but how do I define multiple variables in the script conditions text box in the File Properties?

I have created 2 Radio button screens, one to ask which language (French or English) which I am capturing in %Language% and the other screen to capture which version of PowerPoint they are running (2000 or 2002,2003,2007)

[My PowerPoint Addin is in 2 versions, one for Powerpoint 2000 and one for Powerpoint 2002,2003 or 2007, hence I am leaving it up to user to select which PowerPoint version they have]

on LanguageScreen1 I defined this on Next action after placing 2 radio buttons...
Code:
if String.ToNumber(SessionVar.Expand("%Language%")) ==
	CTRL_RADIO_BUTTON_01 then
		English = true;
		French = false;
else
		English = false;
		French = true;
end
and in the Script conditions textbox defined
Code:
French
or

Code:
English
and it works fine.

I cant figure out how to have the second condition added in the textbox... is it with an AND and parenthesis? I need some examples please..

I tried the following and it doesnt work

Code:
French AND 2000
Code:
(French) AND (2000 = TRUE)
Code:
(French) AND (2002 = TRUE) OR (2003 = TRUE) OR (2007 = TRUE)
I tried doing it with just 2 radio buttons and also tried with 4 radio buttons (each version of Powerpoint on a separate button)

Some examples would be nice...please..

If someone has an alternative way of doing it, I am open to it.

thank you in advance...
Reply With Quote
  #2  
Old 10-14-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
I'm confused by your question; you talk about screen conditions (there are none in suf7/8) and file properties....

Can you post a sample project wtih what you've tried so we can look at what you're doing?
__________________
Reply With Quote
  #3  
Old 10-14-2008
Ishana's Avatar
Ishana Ishana is offline
Forum Member
 
Join Date: Dec 2004
Location: Omaha, Nebraska
Posts: 8
Here is a sample project
in screens, you have 2 radio button screens that capture data...

then in conditions you will see that I tried various ways to selectivly install.

the possible install options are
1. English + Powerpoint 2000
2. English + Powerpoint 2002 or 2003 or 2007
3. French + Powerpoint 2000
4. French + Powerpoint 2002 or 2003 or 2007

and then some common files, which is easy.

hope you follow now...

thanks
Attached Files
File Type: sf7 ConditionalInstall.sf7 (222.5 KB, 6 views)
Reply With Quote
  #4  
Old 10-14-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
So you are dealing with conditional FILES not screens...
I looked at one file; it's wrong:

Code:
French AND OfficeChoice = 2000
should be

Code:
French AND OfficeChoice == 2000
__________________
Reply With Quote
  #5  
Old 10-15-2008
Ishana's Avatar
Ishana Ishana is offline
Forum Member
 
Join Date: Dec 2004
Location: Omaha, Nebraska
Posts: 8
then how to do multiple conditions in that one text box? Should it be like:

Code:
French AND OfficeChoice == 2002 AND OfficeChoice == 2003 AND OfficeChoice == 2007
Reply With Quote
  #6  
Old 10-15-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by Ishana View Post
then how to do multiple conditions in that one text box? Should it be like:

Code:
French AND OfficeChoice == 2002 AND OfficeChoice == 2003 AND OfficeChoice == 2007
OfficeChoice can never equal 2002 AND 2003.

it's one or the other.

Perhaps you mean:

Code:
French AND (OfficeChoice == 2002 or OfficeChoice == 2003 or OfficeChoice == 2007)
__________________
Reply With Quote
  #7  
Old 10-15-2008
Ishana's Avatar
Ishana Ishana is offline
Forum Member
 
Join Date: Dec 2004
Location: Omaha, Nebraska
Posts: 8
Yes, I really did mean an OR not an AND.

Let me try this and will let you know...
Reply With Quote
  #8  
Old 10-15-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by Ishana View Post
Yes, I really did mean an OR not an AND.

Let me try this and will let you know...
Just remember to use the parenthesis ....
__________________
Reply With Quote
  #9  
Old 10-15-2008
Ishana's Avatar
Ishana Ishana is offline
Forum Member
 
Join Date: Dec 2004
Location: Omaha, Nebraska
Posts: 8
Still getting error...
Attached Images
File Type: jpg SF_Install_Error.jpg (18.9 KB, 2 views)
File Type: jpg SF_Install_Error2.jpg (15.7 KB, 3 views)
Attached Files
File Type: sf7 PowerSlidesPro - (allversions_testing).sf7 (224.6 KB, 6 views)
Reply With Quote
  #10  
Old 10-15-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
it's and not AND
it's or not OR
be sure to use == not =
__________________
Reply With Quote
  #11  
Old 10-15-2008
Ishana's Avatar
Ishana Ishana is offline
Forum Member
 
Join Date: Dec 2004
Location: Omaha, Nebraska
Posts: 8
SOLVED: Conditional Script for Multiple Variables in File Properties

That worked! it was the Upper Case "AND" that was causing the problem.

From my experience, Boolean operators are defined in UPPER CASE...why this different?

thank you for your help...

worked out perfectly!
Reply With Quote
  #12  
Old 10-15-2008
jassing's Avatar
jassing jassing is offline
Indigo Rose Customer
 
Join Date: Jan 2001
Location: Anderson Island, WA, USA
Posts: 1,899
Quote:
Originally Posted by Ishana View Post
That worked! it was the Upper Case "AND" that was causing the problem.

From my experience, Boolean operators are defined in UPPER CASE...why this different?

thank you for your help...

worked out perfectly!
Because that's how the designers of the LUA scripting language decided it should be.
__________________
Reply With Quote
Reply

Tags
script, variables

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hundreds of Variables - How can I edit the .APM File? CJM AutoPlay Media Studio 4.0 9 04-30-2003 01:44 PM
Utility to create AMS Script to set Variables to "" Worm AutoPlay Media Studio 4.0 10 02-05-2003 01:54 PM
INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0 Support AutoPlay Media Studio 4.0 Examples 0 10-03-2002 09:38 AM
Can search allow manual browse even if file is found? RichardShaw Setup Factory 5.0 2 08-28-2000 07:08 PM
Install only into one of several directories with specific existing file? RichardShaw Setup Factory 5.0 0 08-17-2000 03:29 PM


All times are GMT -6. The time now is 10:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software