autoupgrader OnDoOwnCloseAppMethod event
Return to Introduction  Previous page  Next page
Applies to
acAutoUpgrader 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.  

iiwarning If you write this method, the AutoUpgrader will NOT execute its own methods which automatically close the application. When you override AutoUpgrader's default close method, 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;  
  if Assigned(Application.MainForm) then  

See also
OnEndUpgrade and OnAfterRestart events.