Is there a way to disable the "Next" button on the Inno Setup's wizard form ?
This should work:
Wizardform.NextButton.Enabled := False;
For more information check out the InnoSetup newsgroups:
http://www.jrsoftware.org/newsgroups.php
I guess you have found a workaround by now. Since I had the same problem and found the solution, I am posting it here in hope of helping others.
I wanted to disable the CANCEL button after a user began an application upgrade. Use this procedure:
procedure CurPageChanged(CurPageID: Integer);
begin
// always disable the cancel button; no going back now!!!
if UpgradeInstallationMode then
Wizardform.CancelButton.Enabled := False;
end;
Also another way of manually doing this is:
procedure DisableCancelButton();
begin
WizardForm.CancelButton.Enabled := False;
WizardForm.Update;
end;
procedure EnableCancelButton();
begin
WizardForm.CancelButton.Enabled := True;
WizardForm.Update;
end;
Another way would be to use this [Setup] directive:
[Setup]
AllowCancelDuringInstall=yes
This is very useful for simple scenarios; you may use this instead of the above procedures.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With