title: Inno Setup: Function to select a component
body: <p>I have a small problem. I need that a page is displayed when you select one or two components. But the other is not work only with a single component seems to have an effect. I leave the code that I'm working.</p>
  
  <pre><code>[Setup]
  AppName=My Program
  AppVerName=My Program v.1.2
  DefaultDirName={pf}\My Program
  
  [Types]
  Name: full; Description: Full installation
  Name: compact; Description: Compact installation
  Name: custom; Description: Custom installation; Flags: iscustom
  
  [Components]
  Name: program; Description: Program Files; Types: full compact custom; Flags: fixed
  Name: help; Description: Help File; Types: full
  Name: readme; Description: Readme File; Types: full
  Name: readme\en; Description: English; Flags: exclusive
  Name: readme\de; Description: German; Flags: exclusive
  
  [Code]
  var
    Page1: TWizardPage;
  
  Procedure InitializeWizard();
  begin
    Page1:= CreateCustomPage(wpSelectComponents, 'Custom wizard page 1', 'TButton');
  end;
  
  function ShouldSkipPage(PageID: Integer): Boolean;
  begin
    Case PageID of
      Page1.ID: Result:= not IsComponentSelected('help');
      Page1.ID: Result:= not IsComponentSelected('readme\de'); //  It does not work
    end;
  end;
  </code></pre>
  
  <p>A greeting and thanks in advance.</p>