是否可以使用ClickOnce部署Windows服务?如果是这样,你是如何实现这一目标的? [英] Is it possible to deploy a Windows Service using ClickOnce? If so, how do you achieve this?

查看:65
本文介绍了是否可以使用ClickOnce部署Windows服务?如果是这样,你是如何实现这一目标的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们需要部署windows服务并使用部署点击一次运行sql脚本。

解决方案

ClickOnce 将文件安装到当前用户的隔离应用程序中储存区。 Windows服务需要基于每台机器安装,因此它们确实不适合ClickOnce模型。


根据您尝试使用sql脚本执行的操作,它可能是当应用程序在更新后首次加载时,可以从应用程序内部运行。


此引用来自2005,但我相当确定它没有改变:
http://msdn.microsoft.com/en-us/library/ms973805.aspx


we need to deploy the windows service and run sql script using the click once deployment .

解决方案

ClickOnce installs files into the current user's isolated app storage areas. Windows Services need to be installed on a per-machine basis so they really don't fit with the ClickOnce model.

Depending on what you are trying to do with the sql script it might be possible to run in from within the application when the application first loads after updating.

This reference is from 2005, but I am fairly certain it has not changed: http://msdn.microsoft.com/en-us/library/ms973805.aspx


这篇关于是否可以使用ClickOnce部署Windows服务?如果是这样,你是如何实现这一目标的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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