Non Volatile Check  Not registry

Hello,

I have a program that when installs sets a value in the registry.  When the program starts it checks this registry value to determine how many times the program has been run.  If its the first time then form1 will run, if not then form2 will run.

This works fine, however the security of the application could be compromised if someone manually changed the registry value to trick the program into believing that its the first run even though it might not be.
Im trying to think of mechanism that I could use to prevent / detect this?

Any suggestions most appreciated.

Thanks.
andyw27Asked:
Who is Participating?
 
cookreCommented:
Encrypting the Registry values will get you a little more security.

But you'll still have problems with those who track changes across installs.

0
 
andyw27Author Commented:
I guess I could hash the value using MD5?
0
 
cookreCommented:
Of course, you could always have the install require a web connection to your own site wherein you save install info.
0
 
cookreCommented:
MD5 would be fine.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.