The knowledge base is no longer actively updated, we have moved all content to our Community Support Forum

How to have time-limited installers

Author: BitRock Support       Date: September 08, 2009 13:38       Tags: Licensing
Customization

Some developers ask us how to 'expire' installers after a certain amount of time has elapsed since it was first created, so end-users need to download a new one. This is useful for example for beta programs in which we want to make sure the users are installing the latest version. Take into account the below can be worked around, as many other time-based protections by simply resetting the operating system time and date

<initializationActionList>
<createTimeStamp format="%Y%m%d" variable="timestamp" />
<throwError text="Installer Expired!">
<ruleList>
  <!-- You need to provide the date after which the installer will not be able to execute-->
  <compareValues value1="20090101" value2="${timestamp}" logic="less" />
</ruleList>
</throwError>
</initializationActionList>