本文介绍了为窗口服务应用程序创建自动更新程序服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞!我已经使用C#.NET创建了一个窗口服务,并希望创建其自动更新程序服务.我的服务将从我的自定义msi Windows安装程序安装.我开始浏览,发现wybuild是可以帮助您的工具,但仅适用于 服务安装为LocalSystem.在这里,我的窗口服务将在用户凭据的上下文中运行.这些是我的查询,如果我想手动创建-1)是否有其他软件包可用于执行此任务?2)如果我将手动开发此更新程序服务,我该如何进行?就像我遇到的一个主要查询一样-应该从头开始卸载并安装服务,以便当我尝试从程序和功能中卸载它时具有正确的版本.还是应该 我只是替换文件并启动服务?当我尝试从程序和功能"中将其卸载时,这会在版本控制方面造成任何问题吗?3)在服务器上应如何放置文件,zip或普通文件.如果是zip,提取时出现任何错误怎么办?就像我担心的这类"n"个问题一样.任何帮助.谢谢 解决方案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 解决方案 这篇关于为窗口服务应用程序创建自动更新程序服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 09-06 00:02