我可以在安装时对代码进行简单的更改吗? [英] can i make simple changes to my code while installation?

查看:79
本文介绍了我可以在安装时对代码进行简单的更改吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

像这样......

每次安装我的程序时都会增加一个计数器???

有人告诉我你可以使用微,那是怎么回事? ?

解决方案

根据我的评论,您需要认真考虑一下您要做的事情。您要做的是在安装时更改代码以增加计数器。什么反击?这个柜台在哪里?无论如何,这又有什么意义呢?这会用当前计数神奇地更新所有安装吗?您是否要将此计数保存到用户可以删除的文件中?也许将它保存到用户只能删除它的注册表中?您的安装是否使用Web服务将计数保存到数据库?如果用户没有互联网连接会怎样?



完全这样做的唯一原因是尝试实施某种有限的安装许可方案或复制保护。 如果你努力使你的软件成为人们愿意支付的东西而不是试图找出一开始注定要失败的许可方案,你会好得多。来自大公司的计划在发布之日就被破解,他们有足够的资金和资源来做出一些非常好的海盗预防工作。它对他们不起作用所以你怎么想它会对你有用?



我从来没有听说过微型所以我个人不知道为什么某人会告诉你使用它,或者它是否会做你想做的任何事情。


like this ...
increment a counter each time i install my program ???
some one told me you can use micro ,, how is that ??

解决方案

As per my comment, you need to give some serious thought to what it is that you are trying to do. What you are not going to do is change your code at installation to increment a counter. What "counter"? Where is this counter? What would be the point anyway? Would that magically update all of your installations with the current count? Are you going to save this count to a file that the user can simply delete? Maybe save it to the registry where the user can simply delete it? Have your installation use a webservice to save the count to a database? What happens if the user does not have an internet connection?

The only reason you would be doing this at all is to try and implement some sort of limited installation licensing scheme or copy protection. You would be much better off putting your effort into making your software into something that people would pay for instead of trying to figure out a licensing scheme that is going to be doomed to failure from the start. Programs from big name companies are cracked the day they are released and they have the money and resources to come up with some really good efforts at piracy prevention. It does not work for them so how would you suppose that it would work out for you?

I have never heard of "micro" so I do not personally know why "someone" would tell you to use it or if it would do whatever it is that you want.


这篇关于我可以在安装时对代码进行简单的更改吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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