• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

Piracy protection mechanism and Windows Vista or Windows 7

Hello,
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.

Thanks !
Alex
0
alexr123
Asked:
alexr123
  • 3
  • 3
1 Solution
 
_Katka_Commented:
Hi, you can register your assembly in the GAC (fairly hidden for a common user). But that requires a signed assembly.

regards,
Kate
0
 
johnb6767Commented:
You can still install the file to System32, and use HKLM\Software\YourApp for the reg file. All users can read that reg key, and path.

It is a common need nowadays in Vista/Windows7 to have to Right Click>RunAs to install an app, so you should be fine....
0
 
alexr123Author Commented:
The problem is that i add a registry key when i run my application. I do not add it from the beginning
with my installer..

======================
You can still install the file to System32, and use HKLM\Software\YourApp for the reg file. All users can read that reg key, and path.

It is a common need nowadays in Vista/Windows7 to have to Right Click>RunAs to install an app, so you should be fine....
0
Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

 
johnb6767Commented:
Use your installer to grant the proper permissions to the Parent Key in the registry, for the "Everyone" "Modify", or include it in a secondary cscript using subinacl.exe.....
0
 
alexr123Author Commented:
As i said before the Application creates the registry key and not the installer.
0
 
johnb6767Commented:
But the installer can create the key in advance, and grant the permissions..... Or a cl;eanup script so to say, after the install is done......
0
 
alexr123Author Commented:
did not answer completely my question
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.

Join & Write a Comment

Featured Post

Improved Protection from Phishing Attacks

WatchGuard DNSWatch reduces malware infections by detecting and blocking malicious DNS requests, improving your ability to protect employees from phishing attacks. Learn more about our newest service included in Total Security Suite today!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now