PC Review


Reply
Thread Tools Rate Thread

date limit on beta version

 
 
gordon
Guest
Posts: n/a
 
      20th Dec 2006
Hi

I am ready to publish a small application in Beta - however I would like to
control the life of the beta version. So that I can release the production
version when there is a zero bug count.

Is there a simple way to do this? I imagine that putting a check that looks
at the system date would be the idea method, and to put this in the form
load part.

Any alternatives? examples of code would be useful too.

Thanks

doug


 
Reply With Quote
 
 
 
 
Laurent Bugnion
Guest
Posts: n/a
 
      20th Dec 2006
Hi,

gordon wrote:
> Hi
>
> I am ready to publish a small application in Beta - however I would like to
> control the life of the beta version. So that I can release the production
> version when there is a zero bug count.
>
> Is there a simple way to do this? I imagine that putting a check that looks
> at the system date would be the idea method, and to put this in the form
> load part.
>
> Any alternatives? examples of code would be useful too.
>
> Thanks
>
> doug


If you deploy your application using ClickOnce, there is a possibility
to force a version check when the application is started, and you can
specifiy a minimum version for the application.

The solution you describe will work. However, it's not very secure. By
decompiling your code and looking at it, a potential pirate will know
that he simply has to change the PC's date to make it work. Of course,
it's sufficient in most of the cases. You must now decide if it's secure
enough for you.

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
 
Reply With Quote
 
gordon
Guest
Posts: n/a
 
      20th Dec 2006
Hi Laurent

My app is free and most of my users are social researchers. I don't mind
giving people my code too - but I don't want too many people to use a
version indefinately that may have bugs. My intention is to 'force' the
upgrade to the final version.

I haven't used click once - where can I get it? Is it part of VS2005?

my code so far is :

public DateTime Date2 = System.Convert.ToDateTime("3/3/2007");

public DateTime Date1 = System.Convert.ToDateTime(DateTime.Now);



I am now tryng to work out how to check that date1 is less than date2.



doug



"Laurent Bugnion" <galasoft-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Hi,
>
> gordon wrote:
>> Hi
>>
>> I am ready to publish a small application in Beta - however I would like
>> to control the life of the beta version. So that I can release the
>> production version when there is a zero bug count.
>>
>> Is there a simple way to do this? I imagine that putting a check that
>> looks at the system date would be the idea method, and to put this in the
>> form load part.
>>
>> Any alternatives? examples of code would be useful too.
>>
>> Thanks
>>
>> doug

>
> If you deploy your application using ClickOnce, there is a possibility to
> force a version check when the application is started, and you can
> specifiy a minimum version for the application.
>
> The solution you describe will work. However, it's not very secure. By
> decompiling your code and looking at it, a potential pirate will know that
> he simply has to change the PC's date to make it work. Of course, it's
> sufficient in most of the cases. You must now decide if it's secure enough
> for you.
>
> HTH,
> Laurent
> --
> Laurent Bugnion, GalaSoft
> Software engineering: http://www.galasoft-LB.ch
> PhotoAlbum: http://www.galasoft-LB.ch/pictures
> Support children in Calcutta: http://www.calcutta-espoir.ch



 
Reply With Quote
 
Stephany Young
Guest
Posts: n/a
 
      20th Dec 2006
So that it is completely unambiguous in relation to regional settings I
would recommend:

if (DateTime.Now < New DateTime(2007, 3, 3))
{
//Allow program to run
}
else
{
//Do not allow program to run
}

If you have that early in your void Main() then on the the 4th of March
2007, the program won't run.

However, if the program is started before the 4th of March 2007 and is still
running when the date changes to the 4th, the current running instance of
the program will continue to run.



"gordon" <(E-Mail Removed)> wrote in message
news:458904fa$0$21086$(E-Mail Removed)...
> Hi Laurent
>
> My app is free and most of my users are social researchers. I don't mind
> giving people my code too - but I don't want too many people to use a
> version indefinately that may have bugs. My intention is to 'force' the
> upgrade to the final version.
>
> I haven't used click once - where can I get it? Is it part of VS2005?
>
> my code so far is :
>
> public DateTime Date2 = System.Convert.ToDateTime("3/3/2007");
>
> public DateTime Date1 = System.Convert.ToDateTime(DateTime.Now);
>
>
>
> I am now tryng to work out how to check that date1 is less than date2.
>
>
>
> doug
>
>
>
> "Laurent Bugnion" <galasoft-(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Hi,
>>
>> gordon wrote:
>>> Hi
>>>
>>> I am ready to publish a small application in Beta - however I would like
>>> to control the life of the beta version. So that I can release the
>>> production version when there is a zero bug count.
>>>
>>> Is there a simple way to do this? I imagine that putting a check that
>>> looks at the system date would be the idea method, and to put this in
>>> the form load part.
>>>
>>> Any alternatives? examples of code would be useful too.
>>>
>>> Thanks
>>>
>>> doug

>>
>> If you deploy your application using ClickOnce, there is a possibility to
>> force a version check when the application is started, and you can
>> specifiy a minimum version for the application.
>>
>> The solution you describe will work. However, it's not very secure. By
>> decompiling your code and looking at it, a potential pirate will know
>> that he simply has to change the PC's date to make it work. Of course,
>> it's sufficient in most of the cases. You must now decide if it's secure
>> enough for you.
>>
>> HTH,
>> Laurent
>> --
>> Laurent Bugnion, GalaSoft
>> Software engineering: http://www.galasoft-LB.ch
>> PhotoAlbum: http://www.galasoft-LB.ch/pictures
>> Support children in Calcutta: http://www.calcutta-espoir.ch

>
>



 
Reply With Quote
 
Laurent Bugnion
Guest
Posts: n/a
 
      20th Dec 2006
Hi Gordon,

gordon wrote:
> Hi Laurent
>
> My app is free and most of my users are social researchers. I don't mind
> giving people my code too - but I don't want too many people to use a
> version indefinately that may have bugs. My intention is to 'force' the
> upgrade to the final version.


I would really give ClickOnce a good look. It's a really easy way to
deploy an application. However, it has restrictions:

- Installation is on a per-user basis, you cannot install for all users
- You cannot modify the registry when you install
- The installer works only with Internet Explorer.

It's a very easy way to install simple apps.

> I haven't used click once - where can I get it? Is it part of VS2005?


Yes. Choose the menu option "Build / Publish <your application name>".
Then you must choose a path (The one that works best for me is over FTP
to my web server).

To set the minimum version, use the Project properties, then "Publish /
Updates". This opens a box allowing you to specify that the application
should check for updates, when it should do it, and what's the minimum
version required.

If you want to see how ClickOnce installation works for the user, you
can try and instally the WPF demo application I made a while back.
http://www.galasoft-lb.ch/mydotnet/G...emo/index.html

Direct URL to install:
http://www.galasoft-lb.ch/mydotnet/G...mo.application

More info about ClickOnce:
http://msdn2.microsoft.com/en-us/net.../aa497348.aspx

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
PhotoAlbum: http://www.galasoft-LB.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I update the Office 2007 Beta version to the retail version =?Utf-8?B?U2V0aHdhcmRNb25yb2U=?= Microsoft Word Document Management 1 18th Jun 2007 03:40 AM
EXPIRATION DATE OF BETA VERSION Bryan Spyware Discussion 4 8th Jul 2005 02:42 AM
Release date for full version of Microsoft spyware beta =?Utf-8?B?Qm9ubmll?= Windows XP Beta 2 23rd Mar 2005 11:19 PM
Free Downloads Accelerator 0.999 Beta Beta Version Gordon Darling Freeware 5 22nd Oct 2003 06:43 PM
PopTray 3.0 Beta 16 (RC4) Beta Version Gordon Darling Freeware 1 10th Oct 2003 11:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:20 PM.