gopinathrbe
Posts: 30
Joined: Fri Sep 22, 2023 8:14 am

Extracting LibraryKey

Is it possible to extract the Library Key using the command line or PowerShell?
Attachments
LibraryKey.jpg
LibraryKey.jpg (254.89 KiB) Viewed 26276 times
Catalin
Posts: 7252
Joined: Wed Jun 13, 2018 7:49 am

Re: Extracting LibraryKey

Hello,

I'm afraid not.

However, I will add this on our TODO list of improvements and hopefully it will be added in a future version of Advanced Installer.

Thank you for bringing this to our attention!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 30
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

Any updates regarding this one?
Catalin
Posts: 7252
Joined: Wed Jun 13, 2018 7:49 am

Re: Extracting LibraryKey

Hello,

This has not yet been implemented.

However, I have now increased its' priority and hopefully it will be added in a future version of Advanced Installer.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Catalin
Posts: 7252
Joined: Wed Jun 13, 2018 7:49 am

Re: Extracting LibraryKey

Hello,

This improvement has been added in version 22.2 of Advanced Installer.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 30
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

"Do you have a sample of how to access that?
Catalin
Posts: 7252
Joined: Wed Jun 13, 2018 7:49 am

Re: Extracting LibraryKey

Hello,

Sure thing, here is an example of how to retrieve the LibraryKey.
$advinst = new-object -comobject Advanced Installer
$proj = $advinst.loadproject("your project path")
$licensing = $advinst.Licensing
$libkey = $licensing.TrialsAndRegistrations.Registration.LibraryKey
The $libkey variable will now contain your LibraryKey.

Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 30
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

How can I access multiple trials?
How do I add a trial using PowerShell?
How can I read TrialwareName, Password, PrivateKey, PubKey, and LibraryKey?

Do you have any documentation regarding these properties?
Catalin
Posts: 7252
Joined: Wed Jun 13, 2018 7:49 am

Re: Extracting LibraryKey

Hello,
How can I access multiple trials?
Not quite sure what you mean here. Could you please give me some more details?

Regarding the rest, yes, there is documentation available here:

Advanced Installer PowerShell Automation Interfaces

ILicensing

ILicenseTrialRegistration

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopinathrbe
Posts: 30
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

Here is the file with multiple trials?
Attachments
Trial.png
Trial.png (27.76 KiB) Viewed 2502 times
gopinathrbe
Posts: 30
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

what about TrialwareName, Password, PrivateKey, PubKey, and LibraryKey?
Catalin
Posts: 7252
Joined: Wed Jun 13, 2018 7:49 am

Re: Extracting LibraryKey

Hello,

The LibraryKey is available by accessing the "Registration" property, like this:

Code: Select all

$proj.Licensing.TrialAndRegistrations.Registration
Screenshot_8.png
Screenshot_8.png (63.77 KiB) Viewed 1629 times

Regarding the others, I'm afraid they might not be available just yet.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”