var
ClearModsDir: TCheckBox;
procedure ClearModsDirOnClick(Sender: TObject);
begin
ClearModsDir.Checked:=Not(ClearModsDir.Checked);
end;
procedure CreateCustomCheckBox();
begin
ClearModsDir:=TCheckBox.Create(WizardForm);
with ClearModsDir do
begin
Parent:=WizardForm;
SetBounds(165, 337, 13, 13);
Checked:=False;
end;
ClearModsLabel:=CreateLabel(WizardForm, 185, 336, 0, 0, ExpandConstant('{cm:ClearModsLabel}'), True);
LabelSetFont(ClearModsLabel, 8, 'Tahoma', $FFFFFF, [fsBold]);
ClearModsLabel.Alignment:=taLeftJustify;
ClearModsLabel.OnClick:=@ClearModsDirOnClick;
end;