We are in the process of testing the licensing system for our module and it’s become apparent that we could speed up testing if there was a way to force the trial mode to expire.
Is there a way to do this? Otherwise, does anyone have any tips on speeding up this process?
DEMOTIMEREMAINING is an integer stored in the SysProps table in the IDB. You could construct a .gwbk with a minimal demo time remaining. (Or just modify it and restart the gateway, if it’s a test system).
And, before anyone gets any fun ideas - setting it higher than 2 hours will be ignored
Technically, you don’t have to restart the gateway - there’s a method on the implementation of LicenseManager that’ll expire the trial then-and-there. However, I don’t know how well tested that is, and it relies on an internal class that’ll be annoying to access from scripting/your module.