Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wix 3.5 Create Scheduled Task

I've got a couple of projects I'm using Wix 3.5 for, along with Paraffin which is going really well, but I'm stuck trying to figure out how to create a Windows Scheduled Task as part of the installation.

I could just run a bat file that creates the task, but I don't think that would give me the uninstall features that Wix has, nor allow me to define it as part of the setup UI.

Does anyone know how to create a scheduled task as part of the XML Configuration in Wix 3.5?

like image 509
Sam J Avatar asked Oct 11 '10 22:10

Sam J


1 Answers

I think you can't avoid writing a custom action for this. Here's the sample. Alternatively, you can wrap this functionality into WiXExtension and e.g. "tie" it to a component, but that's far more work to be done.

like image 69
Yan Sklyarenko Avatar answered Oct 05 '22 19:10

Yan Sklyarenko