forked from groehner/JavaEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.dpr
More file actions
51 lines (47 loc) · 1.2 KB
/
setup.dpr
File metadata and controls
51 lines (47 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
program setup;
uses
madExcept,
madLinkDisAsm,
madListHardware,
madListProcesses,
madListModules,
Forms,
Controls,
SysUtils,
Dialogs,
UMemo in 'UMemo.pas' {FMemo},
fmxutils in 'fmxutils.pas',
USetup in 'USetup.pas' {FSetup},
UUpdater in 'UUpdater.pas' {FUpdater},
UWait in 'UWait.pas' {Fwait};
{$R administrator.res}
// for debugging use Run/Parameters
// get Parameters from procedure TFConfiguration.CallUpdater variable s
begin
Application.Initialize;
Application.CreateForm(TFSetup, FSetup);
Application.CreateForm(TFUpdater, FUpdater);
Application.CreateForm(TFMemo, FMemo);
Application.CreateForm(TFwait, Fwait);
var Param:= paramStr(1);
if (Param <> '-Update') and (Param <> '-Registry') then begin
Application.ShowMainForm:= true;
Application.Run;
end else begin
Application.ShowMainForm:= false;
FWait.Show;
FWait.Invalidate;
Application.ProcessMessages;
Sleep(300);
Screen.Cursor:= crHourGlass;
FUpdater.MakeUpdate;
FWait.Hide;
Screen.Cursor:= crDefault;
if FUpdater.Restart then
if FUpdater.Error then begin
FUpdater.Show;
Application.Run;
end else
FUpdater.BOKClick(nil);
end;
end.