ValeronSoft
[Files]
Source: C:\Splash.bmp; DestDir: {tmp}; Flags: dontcopy;
[Code]
function InitializeSetup(): Boolean;
var
SplashForm: TSetupForm;
SplashImage: TBitmapImage;
begin
SplashForm:=CreateCustomForm
SplashForm.BorderStyle:=bsNone
SplashImage:=TBitmapImage.Create(SplashForm)
SplashImage.AutoSize:=True
SplashImage.Align:=alClient
SplashImage.Stretch:=True
SplashImage.Parent:=SplashForm
ExtractTemporaryFile('Splash.bmp')
SplashImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}')+'\Splash.bmp')
SplashForm.Width:=SplashImage.Width
SplashForm.Height:=SplashImage.Height
SplashForm.Center
SplashForm.Show
SplashImage.Refresh
Sleep(3000) //1000 - 1 секунда
SplashForm.Free
Result:=True
end;
[Files]
Source: C:\Splash.bmp; DestDir: {tmp}; Flags: dontcopy;
[Code]
function InitializeSetup(): Boolean;
var
SplashForm: TSetupForm;
SplashImage: TBitmapImage;
begin
SplashForm:=CreateCustomForm
SplashForm.BorderStyle:=bsNone
SplashImage:=TBitmapImage.Create(SplashForm)
SplashImage.AutoSize:=True
SplashImage.Align:=alClient
SplashImage.Stretch:=True
SplashImage.Parent:=SplashForm
ExtractTemporaryFile('Splash.bmp')
SplashImage.Bitmap.LoadFromFile(ExpandConstant('{tmp}')+'\Splash.bmp')
SplashForm.Width:=SplashImage.Width
SplashForm.Height:=SplashImage.Height
SplashForm.Center
SplashForm.Show
SplashImage.Refresh
Sleep(3000) //1000 - 1 секунда
SplashForm.Free
Result:=True
end;