Hello,
First of all I apologize for such delayed reply, but recently we are quite busy.
I set the Display frequency percent to 0, in order to hide the dialog when the service starts, but I'd like to display the dialog in the configurator when I call "DisplayRegistrationStr". (By the way, what's the difference with DisplayRegistration and DisplayRegistrationStr?)
However, the dialog isn't displayed. Is it possible to do this?
This is the normal behavior. When setting the
display frequency to 0 the trial dialog won't be displayed at all. In this case you should create your own custom trial dialog. Please take a look on the
"Advanced Installer using my custom form for trial.dll" thread which expose what approach you can use.
Regarding the difference between the "DisplayRegistration" and "DisplayRegistrationStr", assuming you are
integrating Licensing support in a C# or VB.NET application, our trial.dll is developed in C++. The "DisplayRegistration" is a C# function which, when called within your C# code, will call the exported "DisplayRegistrationStr" C++ function of the "trial.dll".
The "DisplayRegistrationStr" is a function (of our "trial.dll") which displays (if necessary) the registration dialog. Now, in order to call the "DisplayRegistrationStr" function within a C# code you should import it and link with a C# function (i.e. DisplayRegistration). Then, in order to call the "DisplayRegistrationStr" C++ function within your C# code you should use the "DisplayRegistration" function (which will just call the exported C++ function). Please take a look on the
"Managed Exe calling Native Dll using import" article section which should be useful for you.
Alternatively, is it possible to get the generated COMP_ID from the trial.dll so I can manually send the e-mail or generate a file that will be sent (the target computer doesn't necessarily have access to Internet)?
Yes, this can be done. You should just access the
"COMP_ID" property of our licensing library. Please take a look on our
"Retrieve Licensing Elements" article.
If you have any questions just let us know.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging