TLowder
Programmer
- Mar 20, 2002
- 224
Hello,
I want to create a license / registration key. I've done a lot of reading here on the subject and haven’t exactly found what I’m looking for. I'm not trying to make a hack proof system but simply a deterrent that pops up a prompt for an activation number. I feel many people believe if they can simply install it then its ok for them to do so. Using an activation prompt, even if it isn’t full proof, at least alerts them that what they are doing is not legal. I plan on reading a number then input that into my key generator then enter the new number as the activation / license number. These are on computers I setup and I don’t sell my software to the general public therefore I believe this approach is good for my situation.
I’ve tried hardware ID’s and supposed serial numbers (CPU & HD) but they return the same value on identical machines and are not unique. This leads me to believe they aren’t actually serial numbers but ID's. Anyway, because they aren’t unique, I'm thinking of basing this off of the windows product id in the registry. Specifically -
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProductID
Would this be a unique key? Will this number never change? The last thing I would want would be for a windows update to change the number or location causing valid systems to be locked out until they get a new key. I’m also not concerned of this working on other OS’s. All I use is XP Pro. Or does anyone know of a better unique number to base my key off of?
Thanks,
Tom
I want to create a license / registration key. I've done a lot of reading here on the subject and haven’t exactly found what I’m looking for. I'm not trying to make a hack proof system but simply a deterrent that pops up a prompt for an activation number. I feel many people believe if they can simply install it then its ok for them to do so. Using an activation prompt, even if it isn’t full proof, at least alerts them that what they are doing is not legal. I plan on reading a number then input that into my key generator then enter the new number as the activation / license number. These are on computers I setup and I don’t sell my software to the general public therefore I believe this approach is good for my situation.
I’ve tried hardware ID’s and supposed serial numbers (CPU & HD) but they return the same value on identical machines and are not unique. This leads me to believe they aren’t actually serial numbers but ID's. Anyway, because they aren’t unique, I'm thinking of basing this off of the windows product id in the registry. Specifically -
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\ProductID
Would this be a unique key? Will this number never change? The last thing I would want would be for a windows update to change the number or location causing valid systems to be locked out until they get a new key. I’m also not concerned of this working on other OS’s. All I use is XP Pro. Or does anyone know of a better unique number to base my key off of?
Thanks,
Tom