dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual FoxPro
Expertise: Beginner
Dec 23, 1999

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Creating 30-Day Trial Applications

Question:
I am Web site developer assisting a Visual FoxPro developer in distributing his creation via the Internet. He wants to create a 30-day trial version for distribution in this way. Does Visual FoxPro have any kind of canned modules available that would do this sort of thing or is he going to have to build it in from scratch?

Answer:
Visual FoxPro has a wizard called the Setup Wizard that builds media (disks, network installs, etc.) that can be used to install the VFP application. It does not have the ability to make 30-day trial versions, however.

Here are some suggestions:

  • The VFP developer could develop the application so that it checks for the existence of a file or registry or INI setting. If that setting is there or exists then the application is in 30-day mode: the application can store the date of the first access of the application and then check every time the application is run to see whether the 30 days are over.
  • A simpler approach might be to rename the executable. For example, if the executable for the full product is RICK.EXE, name RICKDEMO30.EXE. The application could check the name of the EXE running and track the date of first access (as mentioned in the previous bullet item) if the word "DEMO" is in the EXE name. Further, it could check the number following the word "DEMO" and use that as the number of days of evaluation.
  • Yet another approach would be to take advantage of the Setup Wizard's "post-setup executable" option. You can tell the Setup Wizard to run another executable after the product is installed. The VFP developer could create a post-executable which would set up the trial environment (registry setting, INI setting, etc.).
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.
Thanks for your registration, follow us on our social networks to keep up-to-date