473,386 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 2837
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+ automatically when instantiated from the web site. For this...
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 "Your computer must have Microsoft Office...
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 greatly appreciated:
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. Before I loaded it I uninstalled my .Net Framework. ...
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 entry on first run. Any help gratefully...
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 VS 2005 beta 2. I uninstalled it later via the...
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 releases available for package "pear.php.net/Date"...
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 (only), yet each time you start Outlook, Word or...
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 solution with its main target being a WinForms...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.