Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the Next/Cancel button captions on a custom page?

Tags:

inno-setup

How to change the Next/Cancel button captions on a custom page ?

like image 628
Tom Avatar asked Jan 15 '13 12:01

Tom


1 Answers

You can use:

procedure CurPageChanged(CurPageID: Integer);
begin
  if CurPageID = YourPageName.ID then begin
    WizardForm.NextButton.Caption := SetupMessage(msgButtonInstall);  
//or := 'YourNewNextButtonText' or := ExpandConstant('{cm:YourCmTitleForNext}')
    WizardForm.CancelButton.Caption := ExpandConstant('{cm:YourCmTitleForCancel}');
  end; //begin + end to make changes only for this single page
end;
like image 195
RobeN Avatar answered Oct 10 '22 14:10

RobeN