OnDoOwnCloseAppMethod event
|
auAutoUpgrader component.
|
property OnDoOwnCloseAppMethod: TNotifyEvent;
|
The DoOwnCloseAppMethod can be used to write your own method which will close the application before upgrade and restart of the updated application.
|
If you write this method, the AutoUpgrader will NOT execute its own methods which automatically close the application. You should handle it programmatically in this event handler.
|
|
By default, if this event is not assigned, the AutoUpgrader will execute following code to shutdown the application:
|
procedure ShutdownApplication;
|
begin
|
if Assigned(Application.MainForm) then
|
Application.MainForm.Close;
|
Application.Terminate;
|
end;
|
OnEndUpgrade and OnAfterRestart events.
|