Click here to Skip to main content
15,998,100 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello House,

Please how can i determine the number of systems my setup file i.e. (the .exe file) to be installed on? i am creating a C# windows application i want to restrict the installer to a single user, or only five users as they normally do in some antivirus. Please any help will be appreciated. Thanks in advance.
Posted

1 solution

The only way to do it would be to leep a licensing server on your end to maintain and verify license counts.

When a user installs the software, they would have to supply a registration key of some kind. This key would then be used to validate that a license for their account is available on your license server. This server has to be running 100% of the time (or damn close to it) for obvious reasons. The license server would then increment the count of installed copies for that account.

When the software needs to be reinstalled for some reason, uninstalling it would contact your license server and decrement the count.

The BIG problem is what happens if the machine is destroyed and the software can't be uninstalled?? That's up to you...

No, I don't have an example of doing this. You might want to see if there is a 3rd party solution that implements this for you. Chances are really good it'll cost you money to subscribe to.
 
Share this answer
 
Comments
Hemant__Sharma 13-May-13 21:10pm    
Accurate answer. I like it. a 5
H.Brydon 13-May-13 21:48pm    
Well, not the only way to do it but a robust way. +5 from me...
Uwakpeter 15-May-13 11:44am    
@Dave, Thanks alot, i now have a glue on how to go about it.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900