473,473 Members | 1,821 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Trial version


How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira

Nov 17 '05 #1
15 3316
And where exactly did you got stuck?

"Rodrigo Ferreira" <rj*********@gmail.com> schrieb im Newsbeitrag
news:OD**************@TK2MSFTNGP14.phx.gbl...

How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira

Nov 17 '05 #2

i don't know how to start!
"cody" <de********@gmx.de> wrote in message
news:O3**************@TK2MSFTNGP09.phx.gbl...

And where exactly did you got stuck?

"Rodrigo Ferreira" <rj*********@gmail.com> schrieb im Newsbeitrag
news:OD**************@TK2MSFTNGP14.phx.gbl...

How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira



Nov 17 '05 #3

My ideia is:
Create a counter of times that i can use the control.

"Rodrigo Ferreira" <rj*********@gmail.com> wrote in message
news:Os*************@TK2MSFTNGP15.phx.gbl...


i don't know how to start!
"cody" <de********@gmx.de> wrote in message
news:O3**************@TK2MSFTNGP09.phx.gbl...

And where exactly did you got stuck?

"Rodrigo Ferreira" <rj*********@gmail.com> schrieb im Newsbeitrag
news:OD**************@TK2MSFTNGP14.phx.gbl...

How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira




Nov 17 '05 #4
It depends on wheather you are limit the number of uses of your control
(e.g. 100 times) or the timespan (e.g. 30 days) it can be used or you limit
the functionality (some buttons do not work, create e messagebox if user
clicks on it).
If trial period has expired show a messagebox or throw an exception or
something.
You store the values (days left and so on) in the registry.
If the user enters the registration key you set a variable in the registry.
You can additionally store a checksum in the registry to prevent that the
user changes your values.

"Rodrigo Ferreira" <rj*********@gmail.com> schrieb im Newsbeitrag
news:Os*************@TK2MSFTNGP15.phx.gbl...

i don't know how to start!
"cody" <de********@gmx.de> wrote in message
news:O3**************@TK2MSFTNGP09.phx.gbl...

And where exactly did you got stuck?

"Rodrigo Ferreira" <rj*********@gmail.com> schrieb im Newsbeitrag
news:OD**************@TK2MSFTNGP14.phx.gbl...

How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira



Nov 17 '05 #5

I don't understand very well!

Supose:

I want to limit the use of my control in 15 times. How can i store this kind
of information?
Code will be helful!

"cody" <de********@gmx.de> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...

It depends on wheather you are limit the number of uses of your control
(e.g. 100 times) or the timespan (e.g. 30 days) it can be used or you
limit
the functionality (some buttons do not work, create e messagebox if user
clicks on it).
If trial period has expired show a messagebox or throw an exception or
something.
You store the values (days left and so on) in the registry.
If the user enters the registration key you set a variable in the
registry.
You can additionally store a checksum in the registry to prevent that the
user changes your values.

"Rodrigo Ferreira" <rj*********@gmail.com> schrieb im Newsbeitrag
news:Os*************@TK2MSFTNGP15.phx.gbl...

i don't know how to start!
"cody" <de********@gmx.de> wrote in message
news:O3**************@TK2MSFTNGP09.phx.gbl...
>
> And where exactly did you got stuck?
>
> "Rodrigo Ferreira" <rj*********@gmail.com> schrieb im Newsbeitrag
> news:OD**************@TK2MSFTNGP14.phx.gbl...
>>
>> How can i create a trial version for my component?
>>
>> I develop a User control and now i want to create a trial version!
>>
>> Greeting!
>> Rodrigo Ferreira
>
>
>




Nov 17 '05 #6
It all depends on how you want your trial version to work.

Do you want it to work for a limited amount of time during execution before
saying something like: “Your 15 minutes of use has expired and this
application will now close. In the registered version of this component, this
message is disabled.”

Have it work for... 15 days before refusing to start?

What about cutting off certain features in the trial version?

Brendan
"Rodrigo Ferreira" wrote:

How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira

Nov 17 '05 #7

Like 15 days!

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
It all depends on how you want your trial version to work.

Do you want it to work for a limited amount of time during execution
before
saying something like: "Your 15 minutes of use has expired and this
application will now close. In the registered version of this component,
this
message is disabled."

Have it work for... 15 days before refusing to start?

What about cutting off certain features in the trial version?

Brendan
"Rodrigo Ferreira" wrote:

How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira


Nov 17 '05 #8
The easiest way for you to do so would be to have your component check a
value in the registry that would note it’s first use/install date and then
compare that date + your time limit to the current date and act accordingly.

In order to populate that registry entry to begin with, on each load of your
component it would need to check for the presence of it, and if it does not
yet exist, create it with the current date.

This method does suffer from an obvious flaw that if a user of your
component chooses, they can easily tweak the registry value themselves every
few days to keep them within the calculated window. If you wanted to take
some steps to prevent that, you could also store a hash of the date, or
encrypt the date and store that in the registry so that it is not obvious
what the value is.

Unfortunately, none of this will prevent someone who is determined to keep
the trial working indefinitely, but it will make it a bit harder.

Brendan
"Rodrigo Ferreira" wrote:

Like 15 days!

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
It all depends on how you want your trial version to work.

Do you want it to work for a limited amount of time during execution
before
saying something like: "Your 15 minutes of use has expired and this
application will now close. In the registered version of this component,
this
message is disabled."

Have it work for... 15 days before refusing to start?

What about cutting off certain features in the trial version?

Brendan
"Rodrigo Ferreira" wrote:

How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira


Nov 17 '05 #9

Ok! but how i save this information in the registry? Like if my component
had 15 days trial?

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
The easiest way for you to do so would be to have your component check a
value in the registry that would note it's first use/install date and then
compare that date + your time limit to the current date and act
accordingly.

In order to populate that registry entry to begin with, on each load of
your
component it would need to check for the presence of it, and if it does
not
yet exist, create it with the current date.

This method does suffer from an obvious flaw that if a user of your
component chooses, they can easily tweak the registry value themselves
every
few days to keep them within the calculated window. If you wanted to take
some steps to prevent that, you could also store a hash of the date, or
encrypt the date and store that in the registry so that it is not obvious
what the value is.

Unfortunately, none of this will prevent someone who is determined to keep
the trial working indefinitely, but it will make it a bit harder.

Brendan
"Rodrigo Ferreira" wrote:

Like 15 days!

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:5F**********************************@microsof t.com...
> It all depends on how you want your trial version to work.
>
> Do you want it to work for a limited amount of time during execution
> before
> saying something like: "Your 15 minutes of use has expired and this
> application will now close. In the registered version of this
> component,
> this
> message is disabled."
>
> Have it work for... 15 days before refusing to start?
>
> What about cutting off certain features in the trial version?
>
> Brendan
>
>
> "Rodrigo Ferreira" wrote:
>
>>
>> How can i create a trial version for my component?
>>
>> I develop a User control and now i want to create a trial version!
>>
>> Greeting!
>> Rodrigo Ferreira
>>
>>
>>
>>
>



Nov 17 '05 #10
This should help:
http://www.csharphelp.com/archives2/archive430.html

--
Adam Clauss

"Rodrigo Ferreira" <rj*********@gmail.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...

Ok! but how i save this information in the registry? Like if my component
had 15 days trial?

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
The easiest way for you to do so would be to have your component check a
value in the registry that would note it's first use/install date and
then
compare that date + your time limit to the current date and act
accordingly.

In order to populate that registry entry to begin with, on each load of
your
component it would need to check for the presence of it, and if it does
not
yet exist, create it with the current date.

This method does suffer from an obvious flaw that if a user of your
component chooses, they can easily tweak the registry value themselves
every
few days to keep them within the calculated window. If you wanted to take
some steps to prevent that, you could also store a hash of the date, or
encrypt the date and store that in the registry so that it is not obvious
what the value is.

Unfortunately, none of this will prevent someone who is determined to
keep
the trial working indefinitely, but it will make it a bit harder.

Brendan
"Rodrigo Ferreira" wrote:

Like 15 days!

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in
message
news:5F**********************************@microsof t.com...
> It all depends on how you want your trial version to work.
>
> Do you want it to work for a limited amount of time during execution
> before
> saying something like: "Your 15 minutes of use has expired and this
> application will now close. In the registered version of this
> component,
> this
> message is disabled."
>
> Have it work for... 15 days before refusing to start?
>
> What about cutting off certain features in the trial version?
>
> Brendan
>
>
> "Rodrigo Ferreira" wrote:
>
>>
>> How can i create a trial version for my component?
>>
>> I develop a User control and now i want to create a trial version!
>>
>> Greeting!
>> Rodrigo Ferreira
>>
>>
>>
>>
>


Nov 17 '05 #11
Also:
http://www.devhood.com/tutorials/tut...utorial_id=264

--
Adam Clauss

"Rodrigo Ferreira" <rj*********@gmail.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...

Ok! but how i save this information in the registry? Like if my component
had 15 days trial?

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
The easiest way for you to do so would be to have your component check a
value in the registry that would note it's first use/install date and
then
compare that date + your time limit to the current date and act
accordingly.

In order to populate that registry entry to begin with, on each load of
your
component it would need to check for the presence of it, and if it does
not
yet exist, create it with the current date.

This method does suffer from an obvious flaw that if a user of your
component chooses, they can easily tweak the registry value themselves
every
few days to keep them within the calculated window. If you wanted to take
some steps to prevent that, you could also store a hash of the date, or
encrypt the date and store that in the registry so that it is not obvious
what the value is.

Unfortunately, none of this will prevent someone who is determined to
keep
the trial working indefinitely, but it will make it a bit harder.

Brendan
"Rodrigo Ferreira" wrote:

Like 15 days!

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in
message
news:5F**********************************@microsof t.com...
> It all depends on how you want your trial version to work.
>
> Do you want it to work for a limited amount of time during execution
> before
> saying something like: "Your 15 minutes of use has expired and this
> application will now close. In the registered version of this
> component,
> this
> message is disabled."
>
> Have it work for... 15 days before refusing to start?
>
> What about cutting off certain features in the trial version?
>
> Brendan
>
>
> "Rodrigo Ferreira" wrote:
>
>>
>> How can i create a trial version for my component?
>>
>> I develop a User control and now i want to create a trial version!
>>
>> Greeting!
>> Rodrigo Ferreira
>>
>>
>>
>>
>


Nov 17 '05 #12

Ok thaks

"Adam Clauss" <ca*****@tamu.edu> wrote in message
news:11*************@corp.supernews.com...

This should help:
http://www.csharphelp.com/archives2/archive430.html

--
Adam Clauss

"Rodrigo Ferreira" <rj*********@gmail.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...

Ok! but how i save this information in the registry? Like if my component
had 15 days trial?

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
The easiest way for you to do so would be to have your component check a
value in the registry that would note it's first use/install date and
then
compare that date + your time limit to the current date and act
accordingly.

In order to populate that registry entry to begin with, on each load of
your
component it would need to check for the presence of it, and if it does
not
yet exist, create it with the current date.

This method does suffer from an obvious flaw that if a user of your
component chooses, they can easily tweak the registry value themselves
every
few days to keep them within the calculated window. If you wanted to
take
some steps to prevent that, you could also store a hash of the date, or
encrypt the date and store that in the registry so that it is not
obvious
what the value is.

Unfortunately, none of this will prevent someone who is determined to
keep
the trial working indefinitely, but it will make it a bit harder.

Brendan
"Rodrigo Ferreira" wrote:
Like 15 days!

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in
message
news:5F**********************************@microsof t.com...
> It all depends on how you want your trial version to work.
>
> Do you want it to work for a limited amount of time during execution
> before
> saying something like: "Your 15 minutes of use has expired and this
> application will now close. In the registered version of this
> component,
> this
> message is disabled."
>
> Have it work for... 15 days before refusing to start?
>
> What about cutting off certain features in the trial version?
>
> Brendan
>
>
> "Rodrigo Ferreira" wrote:
>
>>
>> How can i create a trial version for my component?
>>
>> I develop a User control and now i want to create a trial version!
>>
>> Greeting!
>> Rodrigo Ferreira
>>
>>
>>
>>
>





Nov 17 '05 #13


1. When your control loads have it check the registry for these values
"RegisteredUsername", "RegisteredKey", "TrialStartDate". If TrialStart Date
Doesn't exist create it with todays date.
2. If the RegisteredUsername length < 5 or RegisteredKey is not the
encrypted version of the RegisteredUsername then have it check the trial
date, today > TrialStartDate-15.
3. If the trial test fails have it pop a register form with a link to your
website where they can create a key. On this same form have a box to enter
the RegisteredUsername and RegisteredKey.
4. When they click Ok on the register form have it check the
RegisteredUsername and RegisteredKey to see if they pass the test and if
they do write them to the registry.

"Rodrigo Ferreira" <rj*********@gmail.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...

Ok! but how i save this information in the registry? Like if my component
had 15 days trial?

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
The easiest way for you to do so would be to have your component check a
value in the registry that would note it's first use/install date and
then
compare that date + your time limit to the current date and act
accordingly.

In order to populate that registry entry to begin with, on each load of
your
component it would need to check for the presence of it, and if it does
not
yet exist, create it with the current date.

This method does suffer from an obvious flaw that if a user of your
component chooses, they can easily tweak the registry value themselves
every
few days to keep them within the calculated window. If you wanted to take
some steps to prevent that, you could also store a hash of the date, or
encrypt the date and store that in the registry so that it is not obvious
what the value is.

Unfortunately, none of this will prevent someone who is determined to
keep
the trial working indefinitely, but it will make it a bit harder.

Brendan
"Rodrigo Ferreira" wrote:

Like 15 days!

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in
message
news:5F**********************************@microsof t.com...
> It all depends on how you want your trial version to work.
>
> Do you want it to work for a limited amount of time during execution
> before
> saying something like: "Your 15 minutes of use has expired and this
> application will now close. In the registered version of this
> component,
> this
> message is disabled."
>
> Have it work for... 15 days before refusing to start?
>
> What about cutting off certain features in the trial version?
>
> Brendan
>
>
> "Rodrigo Ferreira" wrote:
>
>>
>> How can i create a trial version for my component?
>>
>> I develop a User control and now i want to create a trial version!
>>
>> Greeting!
>> Rodrigo Ferreira
>>
>>
>>
>>
>


Nov 17 '05 #14
Here is a link that explains how to use the windows registry.
http://www.codeproject.com/csharp/registry1.asp

"Rodrigo Ferreira" <rj*********@gmail.com> wrote in message
news:uW**************@TK2MSFTNGP10.phx.gbl...

Ok! but how i save this information in the registry? Like if my component
had 15 days trial?

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in message
news:2F**********************************@microsof t.com...
The easiest way for you to do so would be to have your component check a
value in the registry that would note it's first use/install date and
then
compare that date + your time limit to the current date and act
accordingly.

In order to populate that registry entry to begin with, on each load of
your
component it would need to check for the presence of it, and if it does
not
yet exist, create it with the current date.

This method does suffer from an obvious flaw that if a user of your
component chooses, they can easily tweak the registry value themselves
every
few days to keep them within the calculated window. If you wanted to take
some steps to prevent that, you could also store a hash of the date, or
encrypt the date and store that in the registry so that it is not obvious
what the value is.

Unfortunately, none of this will prevent someone who is determined to
keep
the trial working indefinitely, but it will make it a bit harder.

Brendan
"Rodrigo Ferreira" wrote:

Like 15 days!

"Brendan Grant" <Br**********@discussions.microsoft.com> wrote in
message
news:5F**********************************@microsof t.com...
> It all depends on how you want your trial version to work.
>
> Do you want it to work for a limited amount of time during execution
> before
> saying something like: "Your 15 minutes of use has expired and this
> application will now close. In the registered version of this
> component,
> this
> message is disabled."
>
> Have it work for... 15 days before refusing to start?
>
> What about cutting off certain features in the trial version?
>
> Brendan
>
>
> "Rodrigo Ferreira" wrote:
>
>>
>> How can i create a trial version for my component?
>>
>> I develop a User control and now i want to create a trial version!
>>
>> Greeting!
>> Rodrigo Ferreira
>>
>>
>>
>>
>


Nov 17 '05 #15
Hi Rodrigo,

Check out the Infralution licensing system at <http://www.infralution.com> They
provide a mechanism to do what you want.

Best regards,

Rodger

Sequence Diagram Editor - Draw sequence diagrams faster
<http://www.SequenceDiagramEditor.com>
Rodrigo Ferreira wrote:

How can i create a trial version for my component?

I develop a User control and now i want to create a trial version!

Greeting!
Rodrigo Ferreira

Nov 17 '05 #16

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

Similar topics

1
by: Greg Steele | last post by:
Does anyone have a copy or know where I can get an installation executable for chiliReports 2.0 from chili! soft? The company I'm working for bought a copy several years ago, then moved their...
1
by: Stef Roes | last post by:
Hey, I'm a student from Belgium, and on my stage we have to work with SQL Reporting Services. One of the requirements is Visual Studio .net. So we ordered the trail version a week ago and...
6
by: Fred BROUARD - SQLpro | last post by:
Hi there, I have get a book wich have a free trial version of IBM DB2 (7.2) wich I have installed on my PC. The problem is that I cannot run it, because it seems to have no licence. When I...
2
by: Jerry Arzin | last post by:
I was looking for a trial Access2002 version for my XP so that I can finish some of the excel tutorials that were downloaded from microsoft.com. Can anybody please give me a website that I can...
3
by: Michael Rodriguez | last post by:
I see VS 2005 has finally been released. My only question is, why is it a "Trial Edition"??? TIA, Mike Rodriguez
3
by: JM | last post by:
Is there a trial version available for download on the net anywhere? I see on the MS web site that I can get a trial version of VStudio.Net but I am really just interested in VB on it's own. ...
4
by: sqlster | last post by:
I want to get trial version of vs2005 so that I could try out asp.net 2.0 applications. Could some one please post the url for the online download. I have downloaded sql server 2005 trial...
3
by: =?Utf-8?B?aGlsbHdhbXA=?= | last post by:
Yes, I was stupid not to put files on disk, and or realize that my version was a trial. Somehow I didn't read the fine print. I saved many files on my trial version of Microsoft Work Word...
6
by: William Foster | last post by:
Good evening all, I have written a single file program in Microsoft Visual Basic 2008 Express Edition that I need to build with a Trial Period. I have built in a simple check the date...
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.