Does anyone know how to create an installation project using Visual Studio 2010 that creates a Windows Scheduler task? I’m building an installer for a Console Application that needs to run every X minutes, and it would be nice for the customer not to have to schedule it manually.
Thanks!
WIX has its own custom action for creating windows task and scheduling them.
Above command will create a task with name ‘My Task’ which will execute everyday at 12 AM.
SCHTASKS command is used to create and schedule a windows task.