[Setup]
AppName=My Application
AppVersion=1.5
DefaultDirName={pf}\My Application
[Code]
var
AkkPage: TWizardPage;
portbtn: TNewCheckbox;
procedure InitializeWizard();
begin
AkkPage := CreateCustomPage(wpWelcome, 'Page_Caption', 'Page_Description');
portbtn := TNewCheckBox.Create(WizardForm);
portbtn.Parent := WizardForm.WelcomePage;
portbtn.Caption := 'Показать страничку';
portbtn.SetBounds(ScaleX(180), ScaleY(280), ScaleX(80), ScaleY(23));
end;
function ShouldSkipPage(PageID: Integer): Boolean;
begin
if (PageID = AkkPage.id) then Result := not portbtn.Checked;
end;