468,110 Members | 1,832 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

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 3089
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Fred BROUARD - SQLpro | last post: by
2 posts views Thread by Jerry Arzin | last post: by
3 posts views Thread by Michael Rodriguez | last post: by
3 posts views Thread by JM | last post: by
4 posts views Thread by sqlster | last post: by
3 posts views Thread by =?Utf-8?B?aGlsbHdhbXA=?= | last post: by
6 posts views Thread by William Foster | last post: by
1 post views Thread by Solo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.