473,397 Members | 1,949 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,397 software developers and data experts.

.NET tool for adding serial number licensing to applications?

Hi,

I want to make it so my customers have to enter a license code to
activate my software. Without this code, the software will only run
for a period of time (7-30 days).

Are there any examples of how to implement this?

Is there anything built-in to .NET to do this?

Thanks,
John
Jul 21 '05 #1
3 4663
Hi John,

Thanks for your post. As I understand, you want to offer unregistered user
of your program a trial period (say, 7-30days). If he does not enter a
registration key during this period, the program will not run afterwards.
Please correct me if there is any misunderstanding. I suggest that you can
implement the following in your program:

1. Create a setup program for your application. In the setup program, we
should record the installation time and registration flag to a persistent
storage (say, registry, file, etc) in an encrypted format if the
application was installed successfully.

2. Check the registration flag immediately after the the program starts. If
this product is registered, go to Step 6, otherwise (flag is missing or is
set to unregistered) go to next step.

3. Get the current time and compare it with the installation time, if it
exceeds the trial period, then go to Step 4, otherwise go to Step 5.

4. Exit the program.

5. Display a dialog/message box urging the customer to enter a registration
key. And modify the registration flag if a user enter a valid regiatration
key.

6. Continue to work.

Note: You should also implement/apply encryption algorithmns for the
registration key/flag and installation time. I believe the following MSDN
article is helpful:
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconcryptographictasks.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #2
Tian,

Thank you very much for your post. That is exactly what I need to do.

Is there any way to prevent the user from un-installing the program,
then re-installing it and getting another evaluation period?

Thanks,
John

ti******@online.microsoft.com (Tian Min Huang) wrote in message news:<D3*************@cpmsftngxa06.phx.gbl>...
Hi John,

Thanks for your post. As I understand, you want to offer unregistered user
of your program a trial period (say, 7-30days). If he does not enter a
registration key during this period, the program will not run afterwards.
Please correct me if there is any misunderstanding. I suggest that you can
implement the following in your program:

1. Create a setup program for your application. In the setup program, we
should record the installation time and registration flag to a persistent
storage (say, registry, file, etc) in an encrypted format if the
application was installed successfully.

2. Check the registration flag immediately after the the program starts. If
this product is registered, go to Step 6, otherwise (flag is missing or is
set to unregistered) go to next step.

3. Get the current time and compare it with the installation time, if it
exceeds the trial period, then go to Step 4, otherwise go to Step 5.

4. Exit the program.

5. Display a dialog/message box urging the customer to enter a registration
key. And modify the registration flag if a user enter a valid regiatration
key.

6. Continue to work.

Note: You should also implement/apply encryption algorithmns for the
registration key/flag and installation time. I believe the following MSDN
article is helpful:
http://msdn.microsoft.com/library/de...us/cpguide/htm
l/cpconcryptographictasks.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #3
Hi John,

Thanks for your feedback.
Is there any way to prevent the user from un-installing the program,

then re-installing it and getting another evaluation period?

We should allow a user to uninstall a trial program if he do not want to
use it any more. What we can do is to keep the installation time and
registration flag information on the disk (say, registry) when unintalling
the program. If one re-install it, the setup program should not update
these information if they exist on the disk and it was registered last
time. Instead of exiting the program immediately, you can also prompt a
dialog to offer a user a chance to enter registration key when the program
starts.

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: nospam | last post by:
Once Yukon is released (whenever that might be) does anyone from MS have any comment on licensing for Yukon and on SQL 2000. I really don't think anyone with SQL 2000 licenses are going to...
2
by: a | last post by:
Does anyone know of any resources on creating trial version of your software written in .NET. I want to make a trial version and have people add a serial number that cannot be guessed. I'm sure...
1
by: RC | last post by:
I have an Access 2002 database with many tables and forms (but just to keep things simple, let's say the DB has one Table "Table1" and one Form "Form1"). I have managed to cobble together so much...
8
by: max | last post by:
Where whould I look to get find out how to implement a License or Serial number for software products? I would like some ideas for impleting a fairly simple solution, basically where can I look...
2
by: Jason L James | last post by:
Hi all, many commercial apps require that a serial number is entered during its installation. Does anyone know how I can duplicate this behaviour in my applications during the installation...
3
by: tai.cabrera | last post by:
What I would like to do is input a range of serial numbers in a form and have that range populate in the table without me having to put them in one at a time manually. The numbers do not exist yet,...
6
by: Paul Bromley | last post by:
Ok - I have given up on trying to find the active IP address for a given PC. For licensing purposes I need to retrive a unique identifier from the PC that the program is installed on. The Hard disk...
1
Logan1337
by: Logan1337 | last post by:
Hello, I'm writing a shareware app that needs to be unlocked with a serial number key. I want the key to be encrypted (that is, digitally signed) such that the app can verify that it was generated by...
4
by: ifitzgerald | last post by:
Hi, I am modifying a rather large and complex MFC application (written by someone else) written in Visual C++ 6.0 with service pack 6. I need to add serial communication functionality to the...
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: 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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.