为窗口服务应用程序创建自动更新程序服务 [英] create automatic updater service for window service application

查看:115
本文介绍了为窗口服务应用程序创建自动更新程序服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里,我的窗口服务将在用户凭据的上下文中运行.

1)是否有其他软件包可用于执行此任务?

就像我担心的这类"n"个问题一样.

谢谢

解决方案

您可以使用ClickOnce更新工具-使用计时器检查服务,以便每次(无论您认为如何)都可以进行更新.

http://msdn.microsoft.com/en-us/library/s22azw1e.aspx

http://www. codeproject.com/Articles/19623/Adding-automatic-updates-to-your-program-Part-1


I have created a window service using C#.NET and want to create its automatic updater service. My service will be installed from my custom msi windows installer. I start browsing and found wybuild is tool which will help you to do so, but will work only with services installed as LocalSystem.

Here my window service will run under context of a user credentials.

These are my queries, if I think of creating it manually -

1) Is there any other package available to do this task?

2) If I will develop this updater service manually, How I need to proceed? Like one major query I have is - Should Uninstall and install service from scratch so that will have proper version when I will try to uninstall it from Program and Feature. Or should I just replace files and start service? Will this create any issues in versioning, when I will try to uninstall it from Program and Feature?

3) On server how files should be placed, zip or normal. If zip, what if any errors came while extracting or something?

Like these kind of 'n' number of issues I am worried about.

Any help.

Thanks

解决方案

You can use the ClickOnce update facility - have the service check using a timer for updates every - whatever time you think.

http://msdn.microsoft.com/en-us/library/s22azw1e.aspx

http://www.codeproject.com/Articles/19623/Adding-automatic-updates-to-your-program-Part-1


这篇关于为窗口服务应用程序创建自动更新程序服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆