Is there a way to disable the "Ne开发者_如何学Goxt" 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.
Sorry about not being able to help in your particular problem directly. I would like to point out though that Inno Setup does not seem to be based on Windows Installer, which will probably make sure that your programs cannot pass Windows Logo requirements.
I would suggest that you take a look at WiX 3, which is an open source installer creator directly from Microsoft, with excellent support from the many people using it and that allows you to easily create regular Windows Installer packages. Disabling the Next button is easy using Wix.
精彩评论