How to disable the "Next" button in the wizard form in Inno Setup?

Is there a way to disable the Next button on the Inno Setup Wizard form?

+6
inno-setup
source share
3 answers

This should work:

Wizardform.NextButton.Enabled := False; 

For more information, visit the InnoSetup newsgroups:
http://www.jrsoftware.org/newsgroups.php

+7
source share

I think you have found a workaround so far. Since I had the same problem and found a solution, I post it here in the hope of helping others.

I wanted to disable the CANCEL button after the user started updating the application. 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; 

Another way to do it manually:

 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 can use this instead of the above procedures.

+4
source share

Sorry for not being able to directly help with your specific problem. I would like to point out that Inno Setup does not seem to be based on the Windows installer, which is likely to ensure that your programs cannot fulfill the requirements for the Windows logo.

I would advise you to take a look at WiX 3 , which is an open source installer developer directly from Microsoft, with excellent support from many who use it, and this allows you to easily create regular Windows installer packages. Disabling the Next button is easy using Wix.

0
source share

All Articles