Alex Rivera | Logout

Custom Action execution by feature

Asked 2010-06-21T19:57:07.047
9

I wrote a custom action to create a scheduled task after install. I do not want the Custom Action to run when the user does not want to create the schedule task. During installation even if I select " Feature will be unAvailable" the schtask is getting created. How do i prevent the Custom Action from executing?

Edit
Report

1 Answer

14

You can set a condition for your CA execution:

<InstallExecuteSequence>
    <Custom Action="ScheduleTaskCA" After="InstallFinalize">
        <![CDATA[&feature_name=3]]>
    </Custom>
</InstallExecuteSequence>

Hope it helps.

If you want to read more about CAs conditions, you can chech the link below. Advanced Custom Action Conditions

answered 2010-06-28T21:07:43.690

Your Answer