Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Action execution by feature

Tags:

wix

wix3

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?

like image 805
user350332 Avatar asked Jun 21 '10 19:06

user350332


1 Answers

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

like image 104
Mario Avatar answered Oct 19 '22 22:10

Mario