stretchedout2
Posts: 16
Joined: Wed Mar 25, 2009 1:37 pm

Trial Dialog shows every time after valid reg code

I'm trying to use the Trial Licensing capability and am having a problem once a valid registration code is entered:

- Before a valid code is entered, calling ReadSettingsStr, to which the user clicks the Try button, always returns 2. --Correct--
- If the user clicks Register and enters a valid code, ReadSettingsStr returns 0. --Correct--
- Once a valid code has been entered, If I call ReadSettingsStr when the program launches the next time, I get the Try, Register, Buy dialog again. <-- Shouldn't this dialog be suppressed if a valid SN was entered previously?

(Clicking Register again shows the valid serial number, already entered. Clicking Continue returns 0. )

Windows 7 32-Bit
AI 7.6
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Trial Dialog shows every time after valid reg code

Hi,

Is the "Runtime Key Location" section in Registration tab using a per-machine location? If so, is your application elevated when registering? Perhaps the application doesn't have enough privileges to write the registration information in the specified location.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
murug86
Posts: 52
Joined: Mon May 21, 2012 10:59 am

Re: Trial Dialog shows every time after valid reg code

Hi,


I have a similar scenario, except.. I hit 'Try'... So return is '2'.

I already have a java-product which checks the licensing status and allows the user to choose the 'Try' option.

And hereafter, everytime my code tries to load the library by calling the ReadSettingsStr(), the Try/Register/Buy pop-up pops up again and again.

How do I get around this ?


ASH
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trial Dialog shows every time after valid reg code

Hello,

I'm not sure why you are encountering this behavior. As my colleague mentioned you should run your application elevated when registering and also, you can use a per-machine "Runtime Key Location".

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
murug86
Posts: 52
Joined: Mon May 21, 2012 10:59 am

Re: Trial Dialog shows every time after valid reg code

Hi,

My "Runtime Key Location" is set to per machine, as is my "Installation Type" in Install-parameters.

But i think you didn't understand:
Daniel.Radu wrote: As my colleague mentioned you should run your application elevated when registering and
I'm NOT registering. I'm going for the TRIAL option by hitting Try. In which case i believe, no registertration key is set in the registry.
That's why i believe that the ReadSettingsStr() is making the pop-up appear.

BUT THIS SHOULDN'T HAPPEN RIGHT?

I'm using a licensed version of 8.4

Kindly assist me in this matter..


ASH
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trial Dialog shows every time after valid reg code

Hello,

First of all I apologize for misunderstanding your question. Please keep in mind this is the normal behavior. Also, the trial dialog display frequency can be set from "Display" tab.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”