A bit more fiddling with it got it figured out. I had to move to NextButtonClick
instead of CurPageChanged
, because CurPageChanged
happens after the fact...
function NextButtonClick(CurPageID: Integer): Boolean;
var
ResultCode: Integer;
begin
Log('NextButtonClick(' + IntToStr(CurPageID) + ') called');
Result := True;
case CurPageID of
InstallTypePage.ID: begin
if InstallTypePage.Values[INSTALL_SERVER] then begin
Result:= MsgBox('Server installation will create a new database on this machine. Continue?', mbInformation, MB_YESNO) = idYes;
end;
end;
end;
end;