如何将我的产品设为 30 天的试用版? [英] How can I make my product as a trial version for 30 days?

查看:26
本文介绍了如何将我的产品设为 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.

要避免重新安装,您可以向随应用试用版保存的任何文件添加一些信息,这些信息对于该特定应用版本是唯一的(可能是安装时的时间戳).当您的应用程序的试用版尝试打开文件时,它会检查此签名并确保它是使用同一实例创建的,否则拒绝打开文件.这基本上消除了简单地重新安装应用程序并继续使用它的能力.

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.

不过,在一天结束时,用户可以完全控制他们的机器,并且可能可以找到解决您想做的任何事情的方法(在您允许用户之前访问保留这些详细信息的网络服务的不足使用应用程序).您可能不应该花费太多精力来阻止那些愿意经历这种额外麻烦的人,而应该花额外的时间/金钱/精力为愿意付费的人改进应用程序.

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天全站免登陆