469,631 Members | 1,218 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,631 developers. It's quick & easy.

How to install and register a 30 day trial

I have a C# application that has an install and
registration process.

I need to create a robust 30day trial that can be
register later.

I have most of the work done, but I want to know the best
way to store the date the product was installed, and then
to retrieve this.

I was thinking of using the registry, but with little
experience with security and the registry I wanted advice
first.

I need to protect against people uninstalling and
reinstalling.
Changing the install date.
Or just deleting the date so it looks like a fresh
install.

Thanks.
Nov 15 '05 #1
1 2720
Invent your own security method / copy protection. If there was a "standard"
way of doing things, one hack could fit all.

You might try this: Hash the date with an internally written algorithm
seeded by a random number determined at first run and stored in the registry
for all uses thereafter. The random number should itself be seeded by
DateTime.Now.Ticks. (The registry-stored randomly generated seed ensures
that a hack for one machine won't likely work on another machine.) Store the
hashed date simultaneously in the registry and as a file. If the registry
date and the file's date don't match, the directory structure has been
copied, or someone is trying to hack. If the date cannot be parsed, someone
could be trying to hack the algorithm, in which case you could choose to
cripple the product altogether.

All protections can still be hacked, but this method might work as an
initial deterrent.

One of my products has a 30-day install with this method.
http://www.jondavis.net/JDSolutions/...lackAlarmClock

Jon
"Brian" <an*******@discussions.microsoft.com> wrote in message
news:02****************************@phx.gbl...
I have a C# application that has an install and
registration process.

I need to create a robust 30day trial that can be
register later.

I have most of the work done, but I want to know the best
way to store the date the product was installed, and then
to retrieve this.

I was thinking of using the registry, but with little
experience with security and the registry I wanted advice
first.

I need to protect against people uninstalling and
reinstalling.
Changing the install date.
Or just deleting the date so it looks like a fresh
install.

Thanks.

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Crash | last post: by
14 posts views Thread by BobAchgill | last post: by
5 posts views Thread by Tull Clancey | last post: by
reply views Thread by Nattydreadlock | last post: by
3 posts views Thread by Anthony Smith | last post: by
2 posts views Thread by =?Utf-8?B?SmVmZiBD?= | last post: by
reply views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.