15.4.1 Trial.dll failing - Advanced Installer Community
timmangan
Posts: 50
Joined: Fri Mar 30, 2018 1:17 pm

15.4.1 Trial.dll failing

Upgraded from 15.3 to 15.4.1
Rebuilt the project and app fails to start, apparently due to the licensing module. Replaced trial.dll with the copy from 15.3 and everything works.

Any ideas?
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: 15.4.1 Trial.dll failing

Hello Tim,

Could you please give me some more details about how the dll is failing? Do you get any error message? If yes, could you please tell me which error message you encounter?

EDITED: Also, in order for me to have a better view about this, could you please send me the old (15.3) and new version (15.4.1) of your setup project (AIPs) by e-mail at support at advancedinstaller dot com?

Looking forward to hearing from you.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
timmangan
Posts: 50
Joined: Fri Mar 30, 2018 1:17 pm

Re: 15.4.1 Trial.dll failing

This is an existing product that was working fine with the trial licensing. A few changes were made to the product software (code which isn't reached), but the AdvancedInstaller was upgraded to 15.4.1.

At runtime, there are no error messages, the app starts and then shuts down silently without showing any GUI components. Presumably the code is hitting the licensing initialization code in trial.dll and then terminating the app. Procmon run without revealing anything other than trial.dll seemed to be the last thing doing anything before it shut down.

As mentioned, replacing with the older trial.dll works around the issue. Have there been changes made that require me to make code changes to the licensing calls?

Tim
timmangan
Posts: 50
Joined: Fri Mar 30, 2018 1:17 pm

Re: 15.4.1 Trial.dll failing

I ran a clean on the VS solution and after rebuilding the issue went away. I don't know what was wrong in the end, but this did resolve it.
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: 15.4.1 Trial.dll failing

Hello Tim,

First of all, I am glad you overcame your issue.

From what you related, you could have encountered this issue if you were using the "ReadSettingsStr" function of our trial.dll when initializing the trial support. Please note that this function kills your application's process if the trial has expired and there is no license registered.

To avoid this behavior, you should use instead the "ReadSettingsRetStr" function, which does the initialization of the licensing support but will NOT kill the application when the trial is expired and the application is unlicensed.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”