The correct way is to disable all pages according to the following directives:
DisableWelcomePage=yes
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyPage=yes
, . . , , , :
[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
DisableWelcomePage=yes
DisableDirPage=yes
DisableProgramGroupPage=yes
DisableReadyPage=yes
[Code]
const
BN_CLICKED = 0;
WM_COMMAND = $0111;
CN_BASE = $BC00;
CN_COMMAND = CN_BASE + WM_COMMAND;
procedure CurPageChanged(CurPageID: Integer);
var
Param: Longint;
begin
{ if we are on the ready page, then... }
if CurPageID = wpReady then
begin
{ the result of this is 0, just to be precise... }
Param := 0 or BN_CLICKED shl 16;
{ post the click notification message to the next button }
PostMessage(WizardForm.NextButton.Handle, CN_COMMAND, Param, 0);
end;
end;
, , .