I want to create an installer that has two versions of the software. I've implemented the radio button. But user can also click "Next" and the setup install nothing.
I want to disable the "Next" button until user select some of the options from the page.
[Code]
var
UsagePage: TInputOptionWizardPage;
function IsProVersion(Mode: Integer): Boolean;
begin
Result := (UsagePage.SelectedValueIndex = Mode);
end;
procedure InitializeWizard();
begin
UsagePage :=
CreateInputOptionPage(
wpInfoBefore, 'Select Edition', 'Select Edition',
'Select software edition you want to install on your computer.',
True, False);
UsagePage.Add('Free version');
UsagePage.Add('Pro version (30 Days Trial)');
end;
[Files]
Source: "D:\software\free\*"; DestDir: "{app}"; \
Flags: ignoreversion recursesubdirs createallsubdirs; Check: IsProVersion(0)
Source: "D:\software\pro\*"; DestDir: "{app}"; \
Flags: ignoreversion recursesubdirs createallsubdirs; Check: IsProVersion(1)