添加“条款和条件”当通过“CLICKONCE”发布Windows应用程序时 [英] Adding "Terms and Condition" when publish the windows application by "CLICKONCE"

查看:67
本文介绍了添加“条款和条件”当通过“CLICKONCE”发布Windows应用程序时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





任何人都知道如何通过CLICKONCE发布Windows应用程序时添加条款和条件步骤。

Hi,

Anybody knows how to Add "Terms and Condition" step when publish the windows application by "CLICKONCE".

推荐答案

ClickOnce部署适用于简单安装。安装过程无法自定义。根据您的需要,发布选项可用于将URL添加到条款和条件网页。如果转到项目属性,请在发布选项卡上选择选项。也许使用支持URL选项对您有用。如果没有,我认为您需要创建自己的部署项目,以便添加条款和条件步骤。
ClickOnce deployment is meant for simple installs. The install process is not customizable. Depending on your needs, the publish options could use used to add a URL to a "Terms and Conditions" webpage. If you go to your project properties, on the publish tab, choose Options. Maybe using the support URL options would work for you. If not, I think you would need to create your own deployment project so you can add a "Terms and Condition" step.


一个简单的解决方案可能是将t& cs添加到应用程序代码,然后可以在应用程序的第一次运行时显示它们。如果用户选择接受,则将文件写出到本地文件系统,可以在应用程序启动时检查该文件。这就是我过去用clickonce完成它的方式,还有一些非常实用的应用程序。



还有一个API在这里 [ ^ ]可以用来在clickonce的上下文中做各种事情。实际上,人们应该将clickonce视为纯粹的部署机制。如果需要采取额外的安装步骤,则应将它们包含在应用程序本身中。
A simple solution may be to add the t&cs to the app code, they can then be displayed on the first run of the application. If the user selects accept, write out a file to the local file system which can be checked for when the app starts. That''s how I''ve done it with clickonce in the past, with some quite substantial applications.

There is also an API here[^] one can use to do all kinds of things in the context of clickonce. In fact one should really treat clickonce as purely a deployment mechanism. If extra installation steps need to be taken, they should be included in the application itself.


这篇关于添加“条款和条件”当通过“CLICKONCE”发布Windows应用程序时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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