app with multiple components

We have a product which consists of multiple modules.One module is a native Windows application, another module is a Tomcat web application.The native application runs in user mode. Tomcat runs as a Windows service (user is local system)We would like to check the same license from both modules.

In a test we were using the same license file in different locations. We experienced that both modules got different license information. The license was successfully activated from one module, but for the other module the license was still in trial mode.

Is our scenario, where one part runs in system mode and another part in user mode, possible?

Thanks and regards,Michael

Hey Michael,

Is our scenario, where one part runs in system mode and another part in user mode, possible?

This, this is possible, you just need to change the way you're using the CheckAndSavePKey() function. Specifically you need to use the "TA_SYSTEM" flag instead of the "TA_USER" flag. So, in C++ this would look something like this:

HRESULT hr = CheckAndSavePKey(L"ABCDE-FGHIJ-KLMNO-...", TA_SYSTEM);

In C# it would look like this:

bool isValid = TurboActivate.CheckAndSavePKey("ABCDE-FGHIJ-KLMNO-...", TurboActivate.TA_Flags.TA_SYSTEM);

(Other programming languages follow a similar theme).

What doing "TA_SYSTEM" does is it stores the activation files on a system-wide level instead of a user-wide level (like you were using before). That is, the user app and the system app will see the exact same activation data.

Does this make sense?

Thanks, makes sense and solves our issue.

One more question: We made some tests with the trial mode. When we changed the system date 2 weeks into the future the reported "remaining days" is still 30 days, but after restarting Tomcat it was correct. Is there any caching in this function?

Kind regards,Michael

We're making the trial tamper protection better in TurboActivate 3.2