472,351 Members | 1,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,351 software developers and data experts.

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 2790
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Carlos G Benevides | last post by:
I have a ASP.Net web application that has two assemblies that run under com+. Under Windows 2000 the two assemblies are added to com+...
3
by: Chuck Arney | last post by:
After installing Office 2003 PRO and attempting to run SETUP to install the Visual Studio Tools for Office version 2003, I get the error message...
1
by: Crash | last post by:
Hi, Framework v1.1 VS 2003 Installer 2.0 Tablet XP Need help with doing this by hand or if anybody knows a doc link with steps it would be...
14
by: BobAchgill | last post by:
I noticed a Free ware CDBurnerXP Pro 3 that boasts having changed over to VB .Net on his latest release. I downloaded the 15MB install file. ...
5
by: Tull Clancey | last post by:
Hi. Does anyone have a way of creating a registry entry during the VB Net 2003 installation process? I can't rely on the application adding the...
0
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed...
3
by: Anthony Smith | last post by:
I always get this message. No matter what package $ pear install Date PHP Warning: Module 'oci8' already loaded in Unknown on line 0 No...
2
by: =?Utf-8?B?SmVmZiBD?= | last post by:
I am already at the 3rd tier of MS and they cannot figure this out yet.. Bought Office 2007 Small Business Upgrade. Install completed the first time...
0
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Actually, my installer package is not for a Windows Service, but for a WinForms application. Well, it is kind of both: this is a multi-project...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.