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
- :
- Re: Checkbox value
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
‎Jun 21, 2011
09:19 AM
Checkbox value
Hi,
I'm sure I'm not the first one to have this issue, but search didn't help me much.
I have a custom SetupType dialog and I have added a checkbox (CheckBox1) there. Checkbox property is INSTALLCLIENT (deleted default value from Property Manager), checkbox value is 1.
Now, as I understand, when the box is checked, the value should be 1, when it's not, the value should be NULL. I need to create a condition for feature to install only if the checkbox is checked. So I've tried different conditions without any success. I set InstallLevel of feature to 250 if the following condition is met. As a condition I've tried
INSTALLCLIENT <> 1
INSTALLCLIENT <> "1"
INSTALLCLIENT
NOT (NOT INSTALLCLIENT)
None of those worked. Can you please advise me what to do?
Thanks in advance!
I'm sure I'm not the first one to have this issue, but search didn't help me much.
I have a custom SetupType dialog and I have added a checkbox (CheckBox1) there. Checkbox property is INSTALLCLIENT (deleted default value from Property Manager), checkbox value is 1.
Now, as I understand, when the box is checked, the value should be 1, when it's not, the value should be NULL. I need to create a condition for feature to install only if the checkbox is checked. So I've tried different conditions without any success. I set InstallLevel of feature to 250 if the following condition is met. As a condition I've tried
INSTALLCLIENT <> 1
INSTALLCLIENT <> "1"
INSTALLCLIENT
NOT (NOT INSTALLCLIENT)
None of those worked. Can you please advise me what to do?
Thanks in advance!
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 22, 2011
09:37 AM
Perhaps you are looking for the FeatureIsItemSelected function?
http://helpnet.flexerasoftware.com/robo/projects/installshield17langref/LangrefFeatureIsItemSelected_example.htm
HTH
http://helpnet.flexerasoftware.com/robo/projects/installshield17langref/LangrefFeatureIsItemSelected_example.htm
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 22, 2011
01:22 PM
Thank you for your answer.
As I understand, this function gets the state of the specified feature. What I need is a correct condition to install/skip feature.
As I understand, this function gets the state of the specified feature. What I need is a correct condition to install/skip feature.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 22, 2011
01:23 PM
Feature Conditions are evaluated during costing, which takes place before dialogs are shown, so this cannot work. An alternate aproach would be to use events on your next button which either AddLocal YourFeature, or Remove YourFeature depending on the condition as you describe. Which should probably be INSTALLCLIENT or Not INSTALLCLIENT respectively.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 22, 2011
02:53 PM
MichaelU wrote:
Feature Conditions are evaluated during costing, which takes place before dialogs are shown, so this cannot work. An alternate aproach would be to use events on your next button which either AddLocal YourFeature, or Remove YourFeature depending on the condition as you describe. Which should probably be INSTALLCLIENT or Not INSTALLCLIENT respectively.
Thanks a lot! It works! Finally!
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)