星期一, 十二月 28, 2009

How to execute custom action only in install (not uninstall) - Stack Overflow

How to execute custom action only in install (not uninstall) - Stack Overflow

Add a condition on the action so it's only triggered during installation, not uninstallation.

Action run only during Install

NOT Installed AND NOT PATCH

Action runs during Install and repair

NOT REMOVE

Run on initial installation only:

NOT Installed

Run on initial install or when repair is selected.

NOT Installed OR MaintenanceMode="Modify"

Finally, to only run an action during uninstall use the following condition:

REMOVE

没有评论:

发表评论