Click here to Skip to main content
15,944,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone,

I have made one software which requires license key for installation, once you have got a license key the key gets encrypted and get stored in Registry.

Now the problem is people have become very smart and they just do one thing i.e. they just export registry key and run it on another pc so that no license key is required for my software..

Now what i want to do is i just want to DISABLE export context menu whenever right click is done on my software registry key, as i can not change a huge piece of code and i just want to write a small piece of code which could do this favor to me..

If possible i would do with if context menu is disable on all registry keys..

I want this thing to be done in c#, please help me in making this possible..

Thanks in advance,
Regards,
Krunal Panchal
Posted
Updated 16-Dec-11 21:06pm
v2
Comments
Philippe Mori 17-Dec-11 8:41am    
Even if it would be possible, the user could copy it by hand in that context.

You can't, not really. You can't protect a registry key against all editing, or reading - if nothing else, your software has to be able to read the key in order to check it, so any software can do the same - as as you have seen, it isn't difficult tyo write software to read a registry key! The only thing you can do is ties the license key to the specific hardware (which can really annoy legitimate users) or check the key online.
 
Share this answer
 
There is no way to do this. Instead of this, you can use more rigid license checks like machine/hardware-locking.
 
Share this answer
 
v2

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