What condition should be used to run a custom action during install and repair only?

Article:HOWTO4769  |  Created: 2005-09-26  |  Updated: 2009-07-09  |  Article URL http://www.symantec.com/docs/HOWTO4769
Article Type
How To

How do I  run a custom action during repair and install only?


1. From the Setup Editor> Dialogs> Locate the Maintenance Welcome Dialog.
2. Double click on the Next button to bring up its Edit Property window.
3.Select the Events Tab.  Press the Add button to the right of  the Publish Events.
4.In the Event field enter a public property name in square brackets (i.e. [PROPERTY] )
5. In the Argument field enter [MaintenanceMode]
6. In the Condition field Enter 1
7. Press OK and return to the MSI Script.

8.  Use the property,named in step 4 above, in a condition in the .MSI script to determine if a custom action should run.  

If NOT Installed AND <Property>="Repair" then
    Execute Custom Action
End Statement

Legacy ID


Article URL http://www.symantec.com/docs/HOWTO4769

Terms of use for this information are found in Legal Notices