Search Persits Software Knowledge Base

 

Article PS01081766

HOWTO: Determining whether an eval or full version of a component is installed

Problem Summary

This article describes how to determine programmatically whether an evaluation or full version of a component is installed, and if it is an eval version, when it expires.

Solution

All Persits Software products (except JUpload) expose the property Expires of the type Date. This property returns the value "9/9/9999" if a full version is installed, or the expiration date otherwise.

For example, the following code snippet determines whether the current installation of AspUpload is a registered or eval copy, and displays the expiration date in the latter case:

Set Upload = Server.CreateObject("Persits.Upload.1")
If Upload.Expires <> CDate("9/9/9999") Then
   Response.Write "AspUpload expires on " & Upload.Expires
Else
   Response.Write "You are running a registered copy."
End If

Created: 2/8/2002 4:21:27 AM
Last Modified: 2/9/2002 3:24:20 PM

Copyright © Persits Software, Inc. 1998 - 2018
For technical support, write to support@persits.com.