home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 26
/
CD_ASCQ_26_1295.iso
/
vrac
/
ysfl12.zip
/
FILES1.ZIP
/
unit1.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-08-17
|
7KB
|
229 lines
unit Unit1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, StdCtrls, Buttons, ExtCtrls, Install, Idcf, Idwg, Idfg,
Idgi, Ysfltool, Idcs;
const
YSFLComponentCount = 13;
type
TForm1 = class(TForm)
Panel1: TPanel;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Image1: TImage;
BitBtn1: TBitBtn;
BitBtn2: TBitBtn;
Label4: TLabel;
Bevel1: TBevel;
Install1: TInstall;
fgComponents: TInstallFileGroup;
fgExamples: TInstallFileGroup;
ProgramItem1: TProgramItem;
fgInstallationBuilder: TInstallFileGroup;
fgKeywordFiles: TInstallFileGroup;
InstallFileGroupsDlg1: TInstallFileGroupsDlg;
SelectWindowGroupDlg1: TSelectWindowGroupDlg;
CopyFileDlg1: TCopyFileDlg;
fgInstallationBuilderinsbld_exe: TInstallFile;
fgInstallationBuilderuzdll20_dll: TInstallFile;
fgInstallationBuilderzdll20a_dll: TInstallFile;
fgInstallationBuilderzdll20b_dll: TInstallFile;
fgInstallationBuilderbivbx11_dll: TInstallFile;
Panel2: TPanel;
Image2: TImage;
Image3: TImage;
Image4: TImage;
Image5: TImage;
Image6: TImage;
Image7: TImage;
Image8: TImage;
Image9: TImage;
Image10: TImage;
Image11: TImage;
Timer1: TTimer;
Image12: TImage;
Image13: TImage;
InstallINIFile1: TInstallINIFile;
GoodInstallationDlg1: TGoodInstallationDlg;
Image14: TImage;
fgInstallationBuilderysflpsu_exe: TInstallFile;
Label5: TLabel;
fgComponentsidcf_dcu: TInstallFile;
fgComponentsidcfmf_dcu: TInstallFile;
fgComponentsidfg_dcu: TInstallFile;
fgComponentsidfgmf_dcu: TInstallFile;
fgComponentsidgi_dcu: TInstallFile;
fgComponentsidgimf_dcu: TInstallFile;
fgComponentsidrs_dcu: TInstallFile;
fgComponentsidrsmf_dcu: TInstallFile;
fgComponentsidwg_dcu: TInstallFile;
fgComponentsidwgmf_dcu: TInstallFile;
fgComponentsinstall_dcu: TInstallFile;
fgComponentsinstcmed_dcu: TInstallFile;
fgComponentsinstfile_dcu: TInstallFile;
fgComponentsinststr_dcu: TInstallFile;
fgComponentsinstuzip_dcu: TInstallFile;
fgComponentsregister_dcu: TInstallFile;
fgComponentsrpt2_dcu: TInstallFile;
fgComponentsrptman_dcu: TInstallFile;
fgComponentsyouseful_pas: TInstallFile;
fgComponentsidcfmf_dfm: TInstallFile;
fgComponentsidfg_dfm: TInstallFile;
fgComponentsidfgmf_dfm: TInstallFile;
fgComponentsidgimf_dfm: TInstallFile;
fgComponentsidrsmf_dfm: TInstallFile;
fgComponentsidwgmf_dfm: TInstallFile;
fgComponentsinstcmed_dfm: TInstallFile;
fgComponentsinstfile_dfm: TInstallFile;
fgComponentsregister_dfm: TInstallFile;
Label6: TLabel;
fgExamplessetup_dpr: TInstallFile;
fgExamplessetup_opt: TInstallFile;
fgExamplessetup_res: TInstallFile;
fgExamplesunit1_dfm: TInstallFile;
fgExamplesunit1_pas: TInstallFile;
fgExamplesunit3_dfm: TInstallFile;
fgExamplesunit3_pas: TInstallFile;
fgExamplesunit2_dfm: TInstallFile;
fgExamplesunit2_pas: TInstallFile;
fgExamplesmagic_dcu: TInstallFile;
fgExamplesmagic_dll: TInstallFile;
fgExamplesmagic_imp: TInstallFile;
fgExamplesmagic_pas: TInstallFile;
fgExamplesttt_dcr: TInstallFile;
fgExamplesttt_dcu: TInstallFile;
fgExamplesttt_pas: TInstallFile;
fgComponentsyouseful_dcr: TInstallFile;
fgInstallationBuilderyouseful_hlp: TInstallFile;
fgKeywordFilesyouseful_kwf: TInstallFile;
fgComponentsui_dcu: TInstallFile;
fgComponentsuidf_dcu: TInstallFile;
fgComponentsuidfmf_dcu: TInstallFile;
fgComponentsysfltool_dcu: TInstallFile;
fgComponentsuidfmf_dfm: TInstallFile;
fgComponentsuninst_exe: TInstallFile;
fgExamplesuninst_dpr: TInstallFile;
fgExamplesuninst_opt: TInstallFile;
fgExamplesuninst_res: TInstallFile;
fgExamplesuninstmf_dfm: TInstallFile;
fgExamplesuninstmf_pas: TInstallFile;
ProgramItem2: TProgramItem;
ComponentConflictDlg1: TComponentConflictDlg;
fgComponentsidcs_dcu: TInstallFile;
fgComponentsidcsmf_dcu: TInstallFile;
fgComponentsidcsmf_dfm: TInstallFile;
procedure BitBtn2Click(Sender: TObject);
procedure BitBtn1Click(Sender: TObject);
procedure Install1StartInstallingPMItems(Sender: TObject);
procedure Install1CopyingFileEvent(Sender: TObject;
InstallFile: TInstallFile);
procedure Install1DoneCopyingFiles(Sender: TObject);
procedure Install1ChooseFileGroups(Sender: TObject);
procedure FormShow(Sender: TObject);
procedure Timer1Timer(Sender: TObject);
procedure Install1GoodInstallation(Sender: TObject);
procedure FormClose(Sender: TObject; var Action: TCloseAction);
private
{ Private declarations }
CurrentImage: Integer;
SystemDir: String;
szSystemDir: array[0..255] of char;
public
{ Public declarations }
YSFLComponentBM: array[0..YSFLComponentCount-1] of TImage;
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
uses
Unit2,FMXUtils;
procedure TForm1.BitBtn2Click(Sender: TObject);
begin
Close;
end;
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
BitBtn1.Enabled := False;
BitBtn2.Enabled := False;
Install1.Install;
Close;
end;
procedure TForm1.Install1StartInstallingPMItems(Sender: TObject);
begin
SelectWindowGroupDlg1.Execute;
end;
procedure TForm1.Install1CopyingFileEvent(Sender: TObject;
InstallFile: TInstallFile);
begin
CopyFileDlg1.Update;
end;
procedure TForm1.Install1DoneCopyingFiles(Sender: TObject);
begin
CopyFileDlg1.Hide;
ComponentConflictDlg1.Execute;
end;
procedure TForm1.Install1ChooseFileGroups(Sender: TObject);
begin
InstallFileGroupsDlg1.Execute;
MessageDlg('You can make your installations really wierd',mtInformation,[mbOk],0);
CopyFile(Install1.SourceDir+'magic.dll',SystemDir);
Form2.Show;
end;
procedure TForm1.FormShow(Sender: TObject);
begin
GetSystemDirectory(szSystemDir,255);
SystemDir := StrPas(szSystemDir);
YSFLComponentBM[0] := Image2;
YSFLComponentBM[1] := Image3;
YSFLComponentBM[2] := Image4;
YSFLComponentBM[3] := Image5;
YSFLComponentBM[4] := Image6;
YSFLComponentBM[5] := Image7;
YSFLComponentBM[6] := Image8;
YSFLComponentBM[7] := Image9;
YSFLComponentBM[8] := Image10;
YSFLComponentBM[9] := Image11;
YSFLComponentBM[10] := Image12;
YSFLComponentBM[11] := Image13;
YSFLComponentBM[12] := Image14;
CurrentImage := 0;
YSFLComponentBM[CurrentImage].BringToFront;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
begin
CurrentImage := (CurrentImage+1) mod YSFLComponentCount;
YSFLComponentBM[CurrentImage].BringToFront;
end;
procedure TForm1.Install1GoodInstallation(Sender: TObject);
begin
GoodInstallationDlg1.Execute;
end;
procedure TForm1.FormClose(Sender: TObject; var Action: TCloseAction);
begin
Form2.Close;
DeleteFile(SystemDir+'\magic.dll');
end;
end.