Tasks can be set to display dependent on the component selected by simply listing Components: a b c
etc and can be set to not be checked by default by specifying Flags: unchecked
. However, there doesn't appear to be a way run a conditional check using Code to have a task checked if only one specific component is selected and remaining unchecked for all others.
Name: "SystemInfo"; Description: "Audit System Information"; GroupDescription: "Additional Setup Options"; Flags: unchecked; Components: Client Standalone Server
Here I want to have the SystemInfo task display as a selectable option if the Client, Standalone or Server components are selected, but if the Server component is selected I want this option to be checked by default rather than unchecked. Basically, is there a way to do a Check: IsComponentServerSelected
in Code and remove the Flag: unchecked
if true? Maybe there is another approach to this that I have overlooked?