使用服务和表单应用程序为程序创建安装程序 [英] Creating an installer for a program with both a service and forms application
问题描述
我写了一个Windows服务和一个Windows表单应用程序,我想一起安装。 我做了一个视觉工作室设置项目并使用它。 我甚至可以在安装后自动启动服务。
但是Visual Studio安装项目似乎没有灵活性来正确处理升级或卸载。 卸载告诉用户他们必须重新启动才能删除该服务,即使该服务已在自定义代码中停止并且在
之后检查。
升级安装也非常因为几乎相同的原因很困难。
所以我想知道是否有一种简单的方法可以使用visual studio安装项目实现这一目标,或者如果不可能,安装程序的替代方法是什么?
根据我的理解,它是Windows安装程序的默认功能。它需要包含组件一起安装和卸载。
- >卸载告诉用户必须重新启动才能删除该服务,即使检查后服务在
自定义代码中停止。
Windows系统需要重新启动才能删除该服务。因为系统应该确保它干净地卸载。
祝你好运,
< p style ="margin:0in 0in 0pt"> Ling Wang
Hi,
I've written a windows service and a windows forms applicaiton which i would like to install together. I've made a visual studio setup project and used that. I can even get it to start the service automatically after install.
But the visual studio setup project doesn't seem to have the flexability to handle upgrades or uninstalls properly. An uninstall tells the user they must restart to remove the service, even though the service is stopped in custom code after the check.
upgrading the installation is also very difficult for pretty much the same reasons.
So i'd like to know if there is an easy way to accomplish this using a visual studio setup project, or if that isn't possible, what are my alternatives as far as installers?
Hi,
Based on my understanding, it is the default feature of windows installer. It needs included components install and uninstall together.
->An uninstall tells the user they must restart to remove the service, even though the service is stopped in custom code after the check.
Windows system needs to restart to remove the service. Because system should make sure it is uninstalled cleanly.
Best regards,
Ling Wang
这篇关于使用服务和表单应用程序为程序创建安装程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!