views:

510

answers:

3

Is there any way to disable <Next> button in Inno Setup?

A: 

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.

villintehaspam
Thanks. I will try it in my next project...
Sasha
(Supposedly) the MSI requirement has been dropped
Anders
Sorry, what does it men "dropped"?
Sasha
"Dropped" means no longer required. Your setup doesn't have to be based on Windows Installer to pass the Windows Logo requirements.
Zyphrax
A: 

This should work:

Wizardform.NextButton.Enabled := False;

For more information check out the InnoSetup newsgroups:
http://www.jrsoftware.org/newsgroups.php

Zyphrax
I checked - it does not work.
Sasha
In what kind of event are you using it? CurPageChanged?
Zyphrax
this should work. where do you use this code ?
drorhan
I use it in Event Handler of my custom button. I want to disable 'Next' button thus the user can not click on it.
Sasha
Could you post some of the InnoSetup script in your start post? The code should work, but it depends on where you place it. Now it might simply not be called or called to late in the process.
Zyphrax
Thank you! It works! The problem was that after setting "Enabled" to "False", I used TOutputProgressWizardPage and it changed the state of Next button.
Sasha
A: 

I tried this code as well. it works on a normal(standard) wizard page but it did not work on my custom page.

Sean