/build/static/layout/Breadcrumb_cap_w.png

Conditional Hell

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,
JT

0 Comments   [ + ] Show comments

Answers (1)

Posted by: JonnyThunder 20 years ago
Senior Yellow Belt
0
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.
JT
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ