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
LVL 1
alexr123Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

_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
Defend Against the Q2 Top Security Threats

Were you aware that overall malware worldwide was down a surprising 42% from Q1'18? Every quarter, the WatchGuard Threat Lab releases an Internet Security Report that analyzes the top threat trends impacting companies worldwide. Learn more by viewing our on-demand webinar 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
alexr123Author Commented:
did not answer completely my question
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.