Steve
Steve

Reputation: 2520

Inno Setup show space required by installation on custom folder select page

I'm creating a custom TInputDirWizardPage in Inno Setup to ask for multiple installation folders from the user.

On the default input directory page the component named DiskSpaceLabel is visible showing how much space is required by the setup. But it's not visible on my custom TInputDirWizardPage. Is there a way to display it?

Upvotes: 1

Views: 516

Answers (1)

Martin Prikryl
Martin Prikryl

Reputation: 202222

As you are not using the standard "Select Destination Location" page, you can simply move the DiskSpaceLabel to your custom page by changing its Parent:

var
  DirPage: TInputDirWizardPage;

procedure InitializeWizard();
begin
  DirPage := CreateInputDirPage(
    wpSelectDir, SetupMessage(msgWizardSelectDir), '', '', False, '');
  { add directory input page items }
  DirPage.Add('Path to Apache:');
  DirPage.Add('Path to PHP:');
  DirPage.Add('Path to Server Files:');

  WizardForm.DiskSpaceLabel.Parent := DirPage.Surface;
end;

enter image description here

Upvotes: 1

Related Questions