Skip to content

Commit

Permalink
Small cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnlaan committed Feb 6, 2025
1 parent 6f28660 commit b9c15a2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Projects/Src/Setup.MainForm.pas
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ TMainForm = class(TComponent)
destructor Destroy; override;
procedure Close;
procedure Finish(const FromPreparingPage: Boolean);
procedure InitializeWizard;
class procedure InitializeWizard;
function Install: Boolean;
procedure SetStep(const AStep: TSetupStep; const HandleExceptions: Boolean);
class procedure ShowException(Sender: TObject; E: Exception);
class procedure ShowExceptionMsg(const S: String);
procedure ShowAboutBox;
class procedure ShowAboutBox;
end;

var
Expand All @@ -49,15 +49,13 @@ destructor TMainForm.Destroy;
inherited;
end;

procedure TMainForm.ShowAboutBox;
var
S: String;
class procedure TMainForm.ShowAboutBox;
begin
{ Removing the About box or modifying any existing text inside it is a
violation of the Inno Setup license agreement; see LICENSE.TXT.
However, adding additional lines to the end of the About box is
permitted. }
S := SetupTitle + ' version ' + SetupVersion + SNewLine;
var S := SetupTitle + ' version ' + SetupVersion + SNewLine;
if SetupTitle <> 'Inno Setup' then
S := S + (SNewLine + 'Based on Inno Setup' + SNewLine);
S := S + ('Copyright (C) 1997-2025 Jordan Russell' + SNewLine +
Expand Down Expand Up @@ -105,7 +103,7 @@ procedure TMainForm.SetStep(const AStep: TSetupStep; const HandleExceptions: Boo
end;
end;

procedure TMainForm.InitializeWizard;
class procedure TMainForm.InitializeWizard;
begin
WizardForm := AppCreateForm(TWizardForm) as TWizardForm;
if CodeRunner <> nil then begin
Expand Down

0 comments on commit b9c15a2

Please sign in to comment.