cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
K0NFUZIUS
Level 5

&FeatureName in condition always return -1

Hallo Installshield experts,
I have a problem with Installshield 2009 Premier.
I try to install a component depending on if an other feature should be installed.
As an example component C1 should only be installed if F2 will be installed.
F1
L C1
L C2
F2
L C3

I found on page 220 in the training manual that this is possible with:
"Conditional Statement syntax"
So I tried to set the Condition of C1 to
&F2=3
I have also tried (&F2=3) AND NOT(!F2=3)

but &F2 seems to return always -1

I was happy to find this solution but it don't work 😞 Has anyone a hint for me.

Thanks a lot

Joerg
Labels (1)
0 Kudos
(3) Replies
Jeff2008
Level 6

You can associate a component with two features. The component will then be installed if any one of the feature is installed, which seems to be the behavior you seek.
0 Kudos
K0NFUZIUS
Level 5

Hi Jeff,
thanks for the answer. No that not what I like to do.
In your case the component would be installed, when selecting F1 or F2 or F1 and F2.

But I don't like to install C1 if F2 isn't selected for installation.

Install C1 -> F1 AND F2
Don't Install C1 -> NOT F1 AND NOT F2
Don't Install C1 -> F1 AND NOT F2

Thanks a lot for further help

Joerg
0 Kudos
K0NFUZIUS
Level 5

I have attached an example:
Please Help!!! 😞
C1 should only be installed if F2 will be installed too
See condition in C1 (&F2=3)

But the condition alwas returns -1. No matter if the Feature will be installed or not.

Please help me
Thanks a lot
Joerg
0 Kudos