Click here to Skip to main content
16,020,877 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I completed my project in C#.Net. I Added a serial key in it. At the time of installation it asks me for the key. The key format is also given by me, but I don't know how to validate that key.
Please give me some way how to validate that key.
Now my key is validated by visual studio or I don't know who. How is the key's validation done?
But I want to do the validation by my own. Is it possible? And if yes, how?




i added the customer information dialog. and format is given by using the serial number template. but for validation it create the problem that visual studio & its logic is so simple & it is if the some of digits is divided by 7 then key is valid.so i want to use the my logic like use sha1,MD5 so where i have to do coding. The design of the customer info dialog is not show,if it is shown then i do the coding on validate button. But now what i have to do?


Please help me.
Lots of thanks.
Posted
Updated 31-Jan-11 1:29am
v3

You can see this links
Click
Click
 
Share this answer
 
 
Share this answer
 
Yes, you can do it.
I assume that you want to lock your software to work on only one PC?
If so, then look at How To Get Hardware Information (CPU ID, MainBoard Info, Hard Disk Serial, System Information , ...)[^] - which gets all the relevant hardware info.
You can then generate a unique key which will only work with that hardware.

If you Google "Create Serial Key c#" you will see that there are a lot of different ways you could use the information: pick one, and off you go!
 
Share this answer
 
Add a Text-box dialog rather than customer information. Then read the key in the Text-box and then implement logic in installer class by reading the data supplied in text-box by user.
 
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