Click here to Skip to main content
15,896,201 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have one form say Validation.cs which ask for Product Key and Unique Key ,

When User Input Unique which is Hardware ID check with some code , and than if that

match with HardWare Id , It takes joined Product key from database according to HardWare

Id , and match with User Input , if valid it should continue setup if not valid ask for

valid Unique Id and Product Key .

Thank you so much for Help :D i dont know how to do this :(
Posted
Comments
Sergey Alexandrovich Kryukov 12-May-15 2:18am    
Do you mean that if the customer upgrades some hardware, your software she/he paid for is supposed to deny its operation?
—SA
Anynomus Anynomus 12-May-15 2:58am    
well it will be free for client but if they upgrade hardware they can request for new product key with their matching hardware ID , i work for one company i just try to make what they require or wants to do , they want setup with product key which can run only on one computer so i took this as good solution
virusstorm 12-May-15 11:17am    
Your workflow has a slight issue, how can the user input the hardware ID when you won't know what the hardware ID is until the application runs on the computer?

I have done similar things before and this isn't a simple process. The overall process is as follows:

Initial Run
1.) Run installer/application on client's computer
2.) User enters the Serial Key
3.) Register the serial key with the generated hardware ID
4.) Perform install or run application.
-----------------------------------------------------------

Subsequent runs
1.) Launch application
2.) Verify hardware ID and serial key -> If match failure, exit application
3.) Allow user to do activities
Anynomus Anynomus 13-May-15 1:13am    
Can I access or Validate Serial Key from Database from Installer Class ? and i have thought about same before but i thought if there is some way with i can verify both key from database during setup time from installer class , Thank you so much for your Response :D and Help
virusstorm 13-May-15 10:36am    
What kind of install are you using? A lot of installer frameworks have ways to add logic to validate your serial key.

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