如何让我的应用程序仅运行3次? [英] How can I let my application run only three times?

查看:83
本文介绍了如何让我的应用程序仅运行3次?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

也许某天某人会窃取并复制我的重要应用程序.
而且我不希望他无休止地运行它.
如何让我的应用程序仅运行3次?

Maybe someone steal and copy my important application some day.
And I don''t want him run it with endless times.
How can let my application run only three times? What code should write in the application?

推荐答案

也许您不必担心它.复制保护将不起作用,因为如果您的应用程序被认为足够重要,那么某个地方的人会想出一种方法来停用您可能在代码中放入的任何内容.

但是,如果您真的认为您的应用程序值得窃取,则可以:

0)实现一个实际存储在可执行文件中的计数器.

1)每次运行程序时,都在exe和注册表中创建/存储GUID.

只要计数器是< 3,并且应用程序中的guid与注册表中的guid匹配,您的应用程序将运行.
Maybe you shouldn''t worry about it. Copy protection won''t work because if your application is deemed to be important enough, someone somewhere will figure out a way to deactivate anything you might put in the code.

However, if you really think your application is worthy of stealing, you could:

0) Implement a counter that is actually stored in the executable.

1) Create/store a guid in the exe AND the registry each time the program is run.

As long as the counter is < 3 and the guid in the app matches the guid in the registry, you app will run.


-在硬盘驱动器上写"Starts left ..."(注册表中的加密密钥.等等) )(受欢迎,但不安全).
-在服务器上写"Starts left ..."(足够获取CPU-ID并编写一个简短的php-script).
- Writing "Starts left..." on hard drive(encrypted key in registry.. etc) (popular, but not secure).
- Writing "Starts left..." on server(enough get CPU-ID & write one short php-script).


这篇关于如何让我的应用程序仅运行3次?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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