We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

gopinathrbe
Posts: 60
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 52144 times
Catalin
Posts: 7853
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: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

Any updates regarding this one?
Catalin
Posts: 7853
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: 7853
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: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

"Do you have a sample of how to access that?
Catalin
Posts: 7853
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: 60
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: 7853
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: 60
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 28411 times
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

what about TrialwareName, Password, PrivateKey, PubKey, and LibraryKey?
Catalin
Posts: 7853
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 27538 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
gopinathrbe
Posts: 60
Joined: Fri Sep 22, 2023 8:14 am

Re: Extracting LibraryKey

gopinathrbe wrote: ↑Fri Apr 11, 2025 10:05 am Here is the file with multiple trials?

this one?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Extracting LibraryKey

Hello,

Not quite sure I fully understand your request here.

Are you asking how to add multiple trials from PowerShell?

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

Re: Extracting LibraryKey

I want to get the LibraryKey from multiple trial configurations.

powershell
Copy
Edit
$advinst = New-Object -ComObject AdvancedInstaller
$proj = $advinst.LoadProject("your project path")
$licensing = $proj.Licensing
$libkey = $licensing.TrialsAndRegistrations.Registration.LibraryKey

However, it’s unclear how to access LibraryKey values if there are multiple trials defined.

Return to “Building Installers”