[Setup] ;Название программы - инсталлятора, а также заголовок инсталлятора, (пожеланию можно версию указать): AppName=about.button ;Версия программы - инсталлятора, (пожеланию можно указать - название + версию): AppVerName=about.button ;Директория установки для программы - инсталлятора: DefaultDirName={pf}\about.button ;Название выходного файла компилятора: OutputBaseFilename=about.button.by.nightw0lf [Code] const MB_ICONINFORMATION = $40; MB_ICONEXCLAMATION = $30; MB_ICONQUESTION = $20; MB_ICONSTOP = $10; MB_ICONNONE = $0; function MessageBox(hWnd: Integer; lpText, lpCaption: string; uType: Cardinal): Integer; external 'MessageBoxA@user32.dll stdcall'; procedure AboutButtonOnClick(Sender: TObject); var hWnd: Integer; begin hWnd := StrToInt(ExpandConstant('{wizardhwnd}')); MessageBox(hWnd, '' + + #13 'Released: здесь должновыводиться дата и время сборки', 'Инфо', MB_OK or $40); end; procedure InitializeWizard(); var Width, Height, I: Integer; AboutButton, CancelButton: TButton; begin CancelButton := WizardForm.CancelButton; AboutButton := TButton.Create(WizardForm); AboutButton.Left := WizardForm.ClientWidth - CancelButton.Left - CancelButton.Width; AboutButton.Top := CancelButton.Top; AboutButton.Width := CancelButton.Width; AboutButton.Height := CancelButton.Height; AboutButton.Caption := 'About'; AboutButton.ShowHint := True AboutButton.Hint := 'О программе' AboutButton.OnClick := @AboutButtonOnClick; AboutButton.Parent := WizardForm; AboutButton.Cursor := crHand; AboutButton.Font.Style := AboutButton.Font.Style + [fsUnderline]; end; |