Skip to content

Commit

Permalink
Change the setup license page to accept by next button
Browse files Browse the repository at this point in the history
The license is GPL, explicit acceptance is not needed
  • Loading branch information
psieg committed Feb 10, 2024
1 parent e3ea7a0 commit 97955fe
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Software/dist_windows/script_qt6.iss
Original file line number Diff line number Diff line change
Expand Up @@ -122,3 +122,31 @@ english.RemoveOnly =(remove only)
; Docs link name
russian.OpenWiki =Открытая документация
english.OpenWiki =Open documentation

; Docs link name
russian.IAgree =Я согласен
english.IAgree =I agree

; https://stackoverflow.com/questions/51290580/on-inno-setup-license-page-replace-checkboxes-by-i-agree-button
[Code]
procedure InitializeWizard();
begin
// Hide radio buttons and pre-select "accept", to enable "next" button
WizardForm.LicenseAcceptedRadio.Checked := True;
WizardForm.LicenseAcceptedRadio.Visible := False;
WizardForm.LicenseNotAcceptedRadio.Visible := False;
WizardForm.LicenseMemo.Height :=
WizardForm.LicenseNotAcceptedRadio.Top +
WizardForm.LicenseNotAcceptedRadio.Height -
WizardForm.LicenseMemo.Top - ScaleY(5);
end;
procedure CurPageChanged(CurPageID: Integer);
begin
// Dubious, but you have asked for it
if CurPageID = wpLicense then
begin
WizardForm.NextButton.Caption := '&I agree';
end;
end;

0 comments on commit 97955fe

Please sign in to comment.