title: Check / uncheck components depending on installation type in Inno Setup
body: <p>I am creating an Inno Setup package that will install spelling dictionaries my application uses. Most people will only be installing one or a couple of dictionaries, so I have two installation types: Full and Custom. Each dictionary is a sub-component of a component named "Dictionaries". (There are over 20 dictionary files, I'm showing only two for brevity):</p>
  
  <pre><code>[Types]
  Name: Full; Description: "Install ALL dictionaries";
  Name: Custom; Description: "Select the dictionaries to install"; Flags: IsCustom;
  
  [Components]
  Name: Dictionaries; Description: "Spelling dictionaries"; Types: Full;
  Name: Dictionaries\EnUK; Description: "English (UK)"; Types: Full;
  Name: Dictionaries\EnUS; Description: "English (US)"; Types: Full;
  
  [Files]
  Source: "E:\path\English (UK).adm"; DestDir: {app}; Components: Dictionaries\EnUK
  Source: "E:\path\English (US).adm"; DestDir: {app}; Components: Dictionaries\EnUS
  </code></pre>
  
  <p>What I want to achieve: </p>
  
  <ul>
  <li>When user selects "Full", installer should automatically check all dictionaries. </li>
  <li>When user selects "Custom", installer should <strong>deselect</strong> all dictionaries. </li>
  </ul>
  
  <p>Instead, <em>all</em> dictionaries are initially selected in the Full mode, and they remain selected  when user picks the Custom mode. I expected them to become automatically deselected in the latter case, since the Custom type is not listed for any of the components.</p>
  
  <p>The strange thing is, if I insert another installation type between the two, e.g. "English only", in which only English dictionaries are included, then the installer does automatically uncheck the 20 other files on selecting this type. But it still refuses to uncheck them when the Custom type is selected.</p>