创建具有某个到期日期的安装项目 [英] Create a setup project with some expiration date

查看:62
本文介绍了创建具有某个到期日期的安装项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经使用VS安装项目创建了安装文件.但是我想添加几天以使客户端的设置到期.

添加到期日期的最佳方法是什么?

项目中是否有可用的到期日属性?请指教.



问候,
Sheik

Hi all,

I already created setup file using VS setup project. But i want to add the days to expiry the setup in client side.

What would be best way to add the expiry date?

Is there any expiration days property available in the project. Please advise.



Regards,
Sheik

推荐答案

Visual Studio安装程序项目中没有这样做的选项.

相反,您可以在Application Start上从注册表/其他安全源中读取值.
这是有关如何执行此操作的代码段:

代码段:TrialTimeManager类 [ ^ ]
There is no option in Visual Studio Setup Project to do so.

Instead you can read the values from registry / other secure source on Application Start

Here is a code snippet on how to do it :

Code Snippet: TrialTimeManager class[^]


您好,

请通过以下链接获取入门指南:

http://stackoverflow.com/questions/6342789/vs-setup- set-expiry-date-without-using-db [ ^ ]

http://stackoverflow. com/questions/1665941/c-sharp-30-days-from-todays-date-for-the-c-sharp-datetime-gurus [如何在有限的时间内制作安装文件? [ ^ ]

此致
瓦尼
Hello,

Please go through below links for starters:

http://stackoverflow.com/questions/6342789/vs-setup-set-expiry-date-without-using-db[^]

http://stackoverflow.com/questions/1665941/c-sharp-30-days-from-todays-date-for-the-c-sharp-datetime-gurus[^]

how to make setup file for limited period?[^]

Regards,
Vani


这篇关于创建具有某个到期日期的安装项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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