我怎样才能让我的产品作为试用版30天? [英] how can i make my product as a trial version for 30 days?

查看:185
本文介绍了我怎样才能让我的产品作为试用版30天?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了我的产品,也生成该许可证密钥,但我要问的关键
后30天。我有注册表值存储的日期与在加入30日内提出。但我发现,如果用户更改系统日期30天前,我的逻辑行不通。

i have created my product and also generated license key for that but i want to ask that key after 30 days. i have do it with registry value storing the date with adding 30 days in that. but i found that if the user change the system date with 30 days before my logic not work.

所以有没有检查系统日期,并允许试用版软件的任何解决方案
只有30天试用的?

so is there any solution for the trial version software without checking system date and allow only 30 days of trial ?

推荐答案

您可以有你的每一天的使用后增加的另一个注册表项。这样一来,即使他们更改计算机的日期,这将关键指示,它一直运行> 30天内程序。

You could have another registry key that you increment after every day's use. That way, even if they change the computer's date, this key would indicate to your program that it's been running for > 30 days.

此外,这个数值可以加密,因此,如果用户尝试手动更改,该程序可以拒绝运行,因为它是无法解密的价值,并得到一个有效的数字出来。

Additionally, this value could be encrypted so that if the user tries to manually change it, the program can refuse to run because it was unable to decrypt the value and get a valid number out of it.

要解决重新安装,你可以添加一些信息,以保存您的应用程序的试用版,这是唯一的应用程序的特定版本的任何文件(可能是从安装时的时间戳)。当你的应用程序的试用版试图打开一个文件时,它会检查这个签名,并确保它与同一实例创建,否则拒绝打开该文件。这实质上neuters简单地重新安装应用程序,并继续使用它的能力。

To get around reinstalls, you could add some information to any file saved with the trial version of your app which is unique to that specific version of the app (perhaps a timestamp from when it was installed). When a trial version of your app tries to open a file, it will check this signature and ensure that it was created with that same instance, otherwise refuse to open the file. This essentially neuters the ability to simply reinstall the app and continue using it.

在这一天虽然结束后,用户有完全控制他们的机器也许可以找到一个办法解决什么是你想做的事(短期访问,你让用户之前,这些细节都保存Web服务的使用应用程序)。你可能不应该花费那么多的精力试图阻止谁愿意去通过这个趁手的家伙,而是花费额外的时间/金钱/精力提高应用程序对于那些谁愿意付出。

At the end of the day though, the user has complete control over their machine and can probably find a way around whatever it is you want to do (short of accessing a web service where these details are kept before you let the user use the app). You probably shouldn't expend so much energy trying to stop the guys who are willing to go through this extra trouble, but instead spend that extra time/money/energy improving the app for those who are willing to pay.

这篇关于我怎样才能让我的产品作为试用版30天?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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