Inno Script - How to make "I Accept the Agreement" radio button on EULA page selected by Default

inno-setup

Solution

You can check the `LicenseAcceptedRadio` control from script code:

[Code]
procedure InitializeWizard;
begin
  WizardForm.LicenseAcceptedRadio.Checked := True;
end;

Problem

In Inno Setup I have and End-user license agreement page which has "I accept the agreement" and "I don't accept the agreement." How can I make the "I accept" radio button selected by default?

Original source