Windows service is written in C #. It is necessary that the service finds updates, installs them and restarts.
- 2And what is the question? - Anton Shchyrov
- @AntonShchyrov, the question is, are there any ready-made solutions? Or fence your bike? - Kibnet Philosoff
- as far as I know, it is not enough to simply replace the files of the installed service with new ones, and the system may well forbid it. So you need a separate application that (possibly at the request of the service itself) will do the correct service uninstall, update, install and launch - rdorn
- @rdorn, if the service is started on behalf of the local system, it has sufficient rights to manage the services. - Kibnet Philosoff
|
1 answer
This is done by a pair of aplicus. One aplikuha is your aplikuha / service. The second is the updater.
The update task will start, check if there are any updates on the remote server. Then does your aplica work, if it works, disable it. Make an update and turn it back on (for the conditions if the applikuha worked before !!!)
Enabling and disabling autoupdate is enough to register in the task schedler operating system with the desired schedule.
|