i have created some shareware applications.
I implemented the following mechanism for piracy protection.
Before Windows Vista and Windows 7 i did write a dll file to the System32 folder with
an encrypted license key.
Also in the Registry under HKEY_LOCAL_MACHINE i inserted a registry key.
The problem is that with Windows Vista and Windows 7 due to the User Account Control (UAC) this is denied.
I want to ask : what other mechanism can be implemented ? Where should i store the encrypted key file and the registry key.
I want that the application can be installed for all users of a computer only once.
If i stored the key in the user's application data directory then another user could easily
just install it under another user account.
Also i do not want to put the key file in the application directory because that would be too obvious.
Please note that i create the registry key with my application and not with the installer.