Defines a time dependent event to pop-up a message for time limited full versions. The number of events is not limited.

 

The following conditions have to be true that the message appears:

 

product must be activated (status of activation = done)

product must be time limited

the expiry date must be in the time frame defined. Alternatively a single date for the event can be defined

User did not confirm the message yet

 

 

 

 

 

If the user confirms the message (by checking: Don't show this information again), then the message does not pop-up again.

 

 

Click to enlarge

User confirms message

 

Before you configure the warning, retrieve the language, the user selected using GetLanguage

 

 

Name

SetRegisterExpiryWarning                                                                                            

Purpose

defines a time dependent event to pop-up a warning message

Params

Parameter

Type

Example

Note

Name

String

myapp

Name or ID of the warning message. Stores information in the registry when user confirms the message

hkey_current_user\software\LP\ExpWarn\myapp-m1

 

You have to specify a new name for every  message - e.g. myapp-m2, myapp-m3

DaysSince

Integer

10

First day, relative to the expiry date, when the message should appear.

DaysUpto

Integer

5

Last day, relative to the expiry date, when the message should appear.

Header

String

Subscription about to expire

Headline

Info

String

Renew your subscription now!

Subheader

Text

String

Your subscription will expire in 10 days. To ensure continuous work, renew your subscriptions now.\n\nOnce your subscription has expired, the product will stop working completely.

Tex information. Text is automatically wrapped. To include a line break use \n

EventDate

Date

 

Instead of using the expiry date to calculate the time frame, the event date is used.

Example: You want to pop-up a message 10 days before Christmas. Set the expiry date to 12/24/2010.

Returncode

Returncode

Type Integer

Note

0

The event was set successfully

All other values – see return codes

The operation was not successful

Sample

 

  iRes := lic.SetRegisterExpiryWarning (‘myapp-m1’,10,5,'Subscription about to expire','Renew your subscription now!','Your subscription will expire in 10 days. To ensure continuous work, renew your subscriptions now.\n\nOnce your subscription has expired, the product will stop working completely.',0);

See also

RemoveExpiryWarningCommit, SetRegisterClearExpiryWarnings

 

 

All events can be removed with SetRegisterClearExpiryWarnings

All user confirmations can be removed with RemoveExpiryWarningCommit