I've read articles on Wise support site about conditionally installing features in a package, but can't seem to get it working at all.

I've created a simple test installation. It includes three features. Core files. Option1 files and Option2 files. What I am trying to do, is to conditionally (based on a dialog box of my own) install EITHER Option1 files OR Option2 files. In either case, the Core files should also install.

This is what I did, following article 1773 in knowledge base...

1. Created three features. Gave Option1 and Option2 features an install level of 99. Set up the files which each feature would install.

2. Created a custom dialog box with a radio button with Option 1 (value=1) and Option 2 (value=2). The radio button uses variable I created called "MyInstall". On the next button, I added an event to "DoAction CostFinalize 1". Removed all other dialog boxes.

3. Created two entries in the Condition Table, like this....

Feature_ Value Condition
Option1 1 MyInstall=1
Option2 1 MyInstall=2

When my installation is compiled, if you select Option1 radio button, it installs the core files and option 1 as expected. When you choose option2 however, it installs both option1 and option2 files (along with core files).

I've tried recreating this probably half a dozen times and it still does the same. What am I doing wrong here?

Any help is appreciated,
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


No worries - I found out what was up.

Just in case other people are wondering, it failed because I had not put conditions into the table for the options NOT being selected. I.e.. I should have put....

Feature_ Value Condition
Option1 1 MyInstall=1
Option2 1 MyInstall=2
Option1 99 MyInstall<>1
Option2 99 MyInstall<>2

Simple really. Thanks to Wise tech support for this.
Answered 04/23/2004 by: JonnyThunder
Senior Yellow Belt

Please log in to comment