Use the Enable Maintenance property to indicate whether or not you want the OnMaintenance script function invoked when an end user attempts to install your application on a system where the application has already been installed—or uninstalls the application from the Add/Remove panel.

Select Yes to invoke the OnMaintenance function in your script. If you do not want the OnMaintenance function invoked, select No for this property.