Click here to Skip to main content
15,886,799 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Create setup with unique product key so that it can be install only on single machine ..When we entered product key then it is visible to user so user can copy that key and install same setup again..but i don't want this
Posted

I hunted through MS and found this[^], from your reading you will find it is no easy task these days. :)

I will have to conquer this soon on my own as well for a biometric scanning solution. I am NOT looking forward to finding and installer or writing a library.

Let me know if you come across a good install tool! I, unfortunately, have none to offer up except to say that the VS add-in has proven cumbersome in my limited exploration of it.
 
Share this answer
 
How To: Component Licensing in .NET[^]

The ONLY way to do this in Windows is with a two-way activation system. I use WooCommerce to track activations of a product key. In WooCommerce with the Software add-on, the person purchases the license, they get a certain number of activations. After they reach the activation limit, it can't be installed again.

Windows doesn't have any truely unique numbers to it. Even hard drive and network interface cards serial numbers can be duplicated. Not all processors return the ProcessorID, etc. The most unique and reliable number that I've found is the installation date, which is a 32-bit integer of when Windows was installed (to the second), but if they use cloning software or copy a Virtual Machine then even that isn't unique.

I've written a pretty reliable program that can detect if you are running the process inside a virtual machine, I can post the code if that helps, but using a global number to limit to one computer just won't work. You need to generate some kind of hardware ID, transmit that to your server (or even email), and then generate the license code or activation code that binds that license to that specific computer.
 
Share this answer
 

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