Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I developed a windows application project and flexible in convert to .exe file but i want user need to give Product installation key during installation. how to achieve this? i used c#.net
Posted

Hi,

There are many ways, let me give you idea about normal scenario.

1) after installation and for the first time user open the software check for the corresponding key is available in registry ?
2) if no key is available then get some computer hardware information (like HDD serial no, Processor ID, etc) and generate one hardware key.
3) user need to send your this hardware key and from your end you can generate encrypted key for that particular computer. and the key should not be used in any other computer as it will be mix of your license information and hardware information.
4) if key is valid then only it will let user allow to open software.

Let me know in case you have any query

best luck
 
Share this answer
 
Comments
Umapathi K 21-Dec-12 1:37am    
but i want to user have to enter product key during installation not after installation
AmitGajjar 21-Dec-12 1:38am    
in that case you can create one form and load it at the time of installation.
Umapathi K 21-Dec-12 1:58am    
how to make customize user form during setup and deployment? i am new to this please help me out
AmitGajjar 21-Dec-12 2:15am    
just create new form that process your key and store in registry. and try to create installer. if you feel any issue, you can post question again :)
Umapathi K 21-Dec-12 2:57am    
i have create one installer class but i am unable to design form (to enter password from user during installation)
Product Key = Sha128("Your Secret Password" + Client's Machine Code)

Client's Machine Code = Sha256(Processor S/N) + Sha256(Hard Disk S/N)
Client's Machine Code = Sha128(Client's Machine Code);

Example of a Generated Product Key:
40BD001563085FC35165329EA1FF5C5ECBDBBEEF

You can take a look at CTI One Way Encryption, which can generate key something like this:
2KSF2-FPW9S-CN87S-3SKJX-QASX9

CTI Text Encryption: http://ctiencrypt.codeplex.com/
 
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