Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi there,

I am developing a Windows Application, and it may be used by enterprises (It wont get Administrative Privileges).
FOr the product, I have used License check on registries at the application startup. But unfortunately, Win7 & 8 PCs doesnt give me permission to access the Windows Registry in Normal Mode...
How can I solve this issuee.... Please Rply :(
Posted

Hi!

Well, using the registry to store licensing information is not pretty safe.

What you could do is to generate an individual hardware Id for each computer which may run the application. This Id is sent to a server you are operating and this server checks whether the Id is valid and lets start up the application.
If you may not call home or you are not operating a server on your own you may also generate the hardware Id, let the user send it to you - e.g. via e-mail - you generate a key file based on this Id which you send back to the user, who copies the file to the application's start up directory, and the software checks, whether the key file's information fits to the hardware Id and then grants access to the software.
 
Share this answer
 
I agree with HiDensity, and would also like to point you to the following articles:
Software Copy Protection for .Net Applications - a Tutorial[^]
Creating Secure Trial Versions for .NET Applications - A Tutorial[^]

If you really are hung up on the registry, keep in mind that different keys can have different access permissions. You could also require the user to run the installer with an Admin account, use that to create the necessary registry keys for your application, and set their permissions as needed.
 
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