This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- &FeatureName in condition always return -1
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 17, 2008
03:32 AM
&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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 17, 2008
08:03 AM
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 17, 2008
09:22 AM
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
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