Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to limit the number of Installations on a Setup package

I am developing a C# Win Forms application that needs to be installed on a client machine(Windows XP / Windows 7).

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?

Awaiting for the answer.

Thanks in Advance,

Vijay

like image 873
vijaysylvester Avatar asked Feb 26 '23 00:02

vijaysylvester


2 Answers

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...

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.

like image 150
Anders Zommarin Avatar answered Feb 27 '23 13:02

Anders Zommarin


You would need to set up a central server to manage the installations and assign keys to users, tracking key usage at the central server. The binary installation itself cannot, to my knowledge, keep track of how many times it has been installed.

like image 33
jbehren Avatar answered Feb 27 '23 13:02

jbehren