title: Inno Setup Simple progress page for Run section
body: <p>My installer is very simple, it basically is:</p>
  
  <ol>
  <li>Welcome Page</li>
  <li>Progress Page</li>
  <li>Final Page</li>
  </ol>
  
  <p>The Welcome and Final pages are standard (just one button).
  At the Progress page I'm installing a bunch of other programs silently.</p>
  
  <p>The actual script is installing each program inside the `[Run] section.<br>
  The problem is that the bar reaches 100% and then stays there.<br>
  I'm only able to change the message text.</p>
  
  <p>What I would like to achieve is to show the progress using Pascal Script (as it may allow me to have more flexibility), something like:</p>
  
  <pre class="lang-pascal prettyprint-override"><code>procedure InitializeWizard;
  begin
    ProgressPage.SetProgress(1, 100);
    exec(.......)
    ProgressPage.SetProgress(15, 100);
    exec(.......)
    ProgressPage.SetProgress(40, 100);
    ...
    ...
  end;
  </code></pre>
  
  <p>That way I can show a more accurate progress bar. This is what I have (simulating installation. Taken from an example):</p>
  
  <pre class="lang-pascal prettyprint-override"><code>[Code]
  
  var
    ProgressPage: TOutputProgressWizardPage;
  
  procedure InitializeWizard;
  begin
    ProgressPage := CreateOutputProgressPage('My App','');
  end;
  
  function NextButtonClick(CurPageID: Integer): Boolean;
  var
    I: Integer;
  begin
    if CurPageID = wpWelcome then begin
      ProgressPage.SetText('Starting installation...', '');
      ProgressPage.SetProgress(0, 0);
      ProgressPage.Show;
      try
        for I := 0 to 10 do begin
          ProgressPage.SetProgress(I, 10);
          Sleep(100);
        end;
      finally
        ProgressPage.Hide;
      end;
    end else
      Result := True;
  end;
  </code></pre>
  
  <p>The problem is that when I build the installer it doesn't show the Welcome page (the installer is running, but nothing is shown).</p>
  
  <p>What I'm doing wrong?</p>
  
  <p>Thank you in advance!</p>