问题描述
我开发一个C#赢窗体应用程序需要被客户机(的Windows XP / Windows 7中)上安装。
I am developing a C# Win Forms application that needs to be installed on a client machine(Windows XP / Windows 7).
我的问题是,我需要限制装置的每安装包的2号(或某些数字)。
The problem i have is , i need to limit the number of installations Per Installation package to 2(or some number).
有没有办法实现这一目标,通过安装屏蔽或通过任何其他方式?
Is there any way to achieve this through Install Shield or by any other means?
时嵌入的关键在文件名中,一个好的做法呢?
Is embedding the key in the file name , a good practice?
提前等待答案。
谢谢,
维杰 -
推荐答案
这必须是不可能的,因为用户可以随时进行运行它之前的安装包复制。一个包(类似* .msi文件)仅仅是一个字节序列,可复制...
This must be impossible as the user may always make a copy of the installation package before running it. A package (like an *.msi file) is just a sequence of bytes, that can be copied...
您可以将其限制在每台机器上安装2鉴于你留下的地方的一些信息(如注册表)。
You can limit it to 2 installations per machine given that you leave some information behind somewhere (like in the registry).
另一种方法是有一个授权密钥(或嵌入到安装包中的键)的,则使用使用因特网上的中央服务器来激活软件。这可能是你唯一的选择。
Another alternative is to have a license key (or a key embedded into the installation package) that then is used to activate the software using a central server on the Internet. That is probably you only option.
这篇关于如何限制上安装程序包安装数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!