You can achieve this using a Control Condition. Attached is a sample project that implements this. Basically, the checkbox and static text box controls each have a control condition that test MYPROP for it's value, and depending on that set themselves as hidden or not. Note that you have to create your own checkbox and static text box since the predefined ones can not have control conditions.
I cannot seem to find what you have done in the sample project which shows this.
The project appears to be a basic project template with no changes.
Because the predefined Readme and Launch app do not allow a control condition, I had already done a similar thing as you are suggesting as a work-around. Only it seemed a bit troublesome and wondered why the default checkboxes do not allow a Control Condition. I was wondering if I missed something or if there was an easier method and therefore asked the question. But you now have confirmed that it is not possible with the predefined controls.
Here is how I did it:
1. On the FINISH ACTIONS tab, select the "Show '"View Readme" option" and select a file.
2. Set the VISIBLE property of the predefined "View Readme" checkbox and label to FALSE.
3. Add a new Checkbox with a value of 1 in the VALUE property, and if you want it to be checked as default, set the DEFAULT property also to 1.
4. Also, add to the PROPERTY NAME property of the check box a value of SHOWREADME (Uppercase) to store the checkbox value.
5. On the PUBLISHED EVENTS tab, edit the DoAction for the A1_ViewReadme changing it's condition to now read: (SHOWREADME =1) AND (NOT Installed). This then tests for the SHOWREADME property of the new checkbox instead of the VIEWREADME property of the predefined checkbox.
6. Add a label next to the checkbox and edit it's text to read "View Readme"
Now you can add a condition to the new check box and label by clicking on one of these and then on the CONTROL CONDITIONS tab and adding the needed condition.
FOLLOW US
Get the latest news in Application Packaging