|
Example |
|
| acAppStartCounter component.
|
| property Counter: Integer; // read-only!
|
| The Counter is the read-only property which determines the number of restarts of current application. This variable is increased on each program startup.
|
|
|
| Read the Counter to found how many times the application was executed. If the program started for the first time this value will be 1.
|
|
|
| procedure TMainForm.FormCreate(Sender: TObject);
|
| begin
|
| if acAppStartCounter1.Counter = 1 then
|
| acAppAutoRun1.AutoRun := True;
|
| end;
|
| InstallTime and LifeTime properties;
|
| ResetCounter method;
|
| OnFirstStart event.
|