![]() |
![]() ![]() ![]() |
acAutoUpgrader component.
|
type
|
TacAUFileStartEvent = procedure(Sender: TObject;
|
const FileURL: String; FileSize: Integer; FileTime: TDateTime;
|
var CanUpgrade: Boolean) of object;
|
|
property OnFileStart: TacAUFileStartEvent;
|
The OnFileStart event occurs after receiving the headers of the file which is about to be downloaded.
|
|
Write the OnFileStart event handler to get the name and size of file which about to be downloaded, plus the date/time of its last modification (time when it has been uploaded to your website). Also, you can use this event to decide, whether you really want to download this file. If your program think that this file should already updated set CanUpgrade parameter to False and AutoUpgrader will not download it from your website, and will pass to next file in the download queue.
|
|
![]() |
MiscFilesUpgrade property;
|
OnFileDone, OnBeginUpgrade, OnEndUpgrade and OnProgress events;
|
OnHeaderInfo event of acHTTP component.
|