autoupgrader OnDoOwnCloseAppMethod event
Return to Introduction  Previous page  Next page
Applies to
auAutoUpgrader component.  

Declaration
property OnDoOwnCloseAppMethod: TNotifyEvent;  

Description
The DoOwnCloseAppMethod can be used to write your own method which will close the application before upgrade and restart of the updated application.  

Remarks
iiwarning 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.  
 
iiinfo 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;  

See also
OnEndUpgrade and OnAfterRestart events.