Add a scheduled task at the setup?

后端 未结 2 1235
你的背包
你的背包 2020-12-31 16:34

I\'ve a little c# application, and I have to create a scheduled task for this application.

I have a Setup which installs the application, and the best case will be t

相关标签:
2条回答
  • 2020-12-31 16:57

    There is a Task Scheduler Managed Wrapper on codeplex - this can be used to create a small console application that will setup a task and can be run by your installer.

    You can also run the schtasks command line utility for a similar result.

    0 讨论(0)
  • 2020-12-31 17:10

    This may not be a whole answer, but depending on the installer (for example I think wise does it) you can setup tasks from there. Otherwise, you could call your app with a special commandline parameter to do so and utilise the api http://msdn.microsoft.com/en-us/library/aa383614.aspx as a possibility

    0 讨论(0)
提交回复
热议问题