[Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
[B][[/B]Code]
procedure InitializeWizard;
begin
with WizardForm do begin
OuterNotebook.Hide;
WelcomeLabel1.Parent := WizardForm;
WelcomeLabel2.Parent := WizardForm;
WizardBitmapImage.Parent := WizardForm;
SelectDirBitmapImage.Parent := WizardForm;
SelectDirBitmapImage.SetBounds(InnerNotebook.Left + SelectDirBitmapImage.Left, InnerNotebook.Top + SelectDirBitmapImage.Top,
SelectDirBitmapImage.Width, SelectDirBitmapImage.Height);
SelectDirLabel.Parent := WizardForm;
SelectDirLabel.SetBounds(InnerNotebook.Left + SelectDirLabel.Left, InnerNotebook.Top + SelectDirLabel.Top,
SelectDirLabel.Width, SelectDirLabel.Height);
SelectDirBrowseLabel.Parent := WizardForm;
SelectDirBrowseLabel.SetBounds(InnerNotebook.Left + SelectDirBrowseLabel.Left, InnerNotebook.Top + SelectDirBrowseLabel.Top,
SelectDirBrowseLabel.Width, SelectDirBrowseLabel.Height);
Bevel1.Parent := WizardForm;
DirEdit.Parent := WizardForm;
DirEdit.SetBounds(InnerNotebook.Left + DirEdit.Left, InnerNotebook.Top + DirEdit.Top,
DirEdit.Width, DirEdit.Height);
DirBrowseButton.Parent := WizardForm;
DirBrowseButton.SetBounds(InnerNotebook.Left + DirBrowseButton.Left, InnerNotebook.Top + DirBrowseButton.Top,
DirBrowseButton.Width, DirBrowseButton.Height);
DiskSpaceLabel.Parent := WizardForm;
DiskSpaceLabel.SetBounds(InnerNotebook.Left + DiskSpaceLabel.Left, InnerNotebook.Top + DiskSpaceLabel.Top,
DiskSpaceLabel.Width, DiskSpaceLabel.Height);
WizardSmallBitmapImage.Parent := WizardForm;
PageNameLabel.Parent := WizardForm;
PageDescriptionLabel.Parent := WizardForm;
end;
end;
procedure HideComponents;
begin
with WizardForm do begin
WelcomeLabel1.Hide;
WelcomeLabel2.Hide;
WizardBitmapImage.Hide;
SelectDirBitmapImage.Hide;
SelectDirLabel.Hide;
SelectDirBrowseLabel.Hide;
Bevel1.Hide;
DirEdit.Hide;
DirBrowseButton.Hide;
DiskSpaceLabel.Hide;
WizardSmallBitmapImage.Hide;
PageNameLabel.Hide;
PageDescriptionLabel.Hide;
end;
end;
procedure CurPageChanged(CurPageID : integer);
begin
HideComponents;
case CurPageID of
wpWelcome : begin
with WizardForm do begin
WelcomeLabel1.Show;
WelcomeLabel2.Show;
WizardBitmapImage.Show;
end;
end;
wpSelectDir: begin
with WizardForm do begin
SelectDirBitmapImage.Show;
SelectDirLabel.Show;
SelectDirBrowseLabel.Show;
Bevel1.Show;
DirEdit.Show;
DirBrowseButton.Show;
DiskSpaceLabel.Show;
WizardSmallBitmapImage.Show;
PageNameLabel.Show;
PageDescriptionLabel.Show;
end;
end;
end;
end;