Adrian_Arkio
Posts: 5
Joined: Mon Sep 20, 2021 12:03 pm

License Command-line Parameter

Tue Oct 05, 2021 8:56 am

Good morning,

We have the ability to, at runtime, read from a file the license code and use it within the app. This file is installed along our app using Advanced Installer.

I would like to add a license command-line parameter that populates the license's file during installation.

The format of the parameter would be something like this: LICENSE="xxxx-xxxx-xxxx-xxxx"

Is this something I can do with Advanced Installer? Thank you.

Catalin
Posts: 6536
Joined: Wed Jun 13, 2018 7:49 am

Re: License Command-line Parameter

Tue Oct 05, 2021 11:52 am

Hello Adrian,

In order to achieve that, you could pass the license through a property (exactly as you mentioned) and then use a ".txt file update" operation to update the license file.

Hope this helps!

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

Adrian_Arkio
Posts: 5
Joined: Mon Sep 20, 2021 12:03 pm

Re: License Command-line Parameter

Wed Oct 06, 2021 10:15 am

Thank you.

Is this only available for an Enterprise license?

Catalin
Posts: 6536
Joined: Wed Jun 13, 2018 7:49 am

Re: License Command-line Parameter

Wed Oct 06, 2021 10:25 am

Hello Adrian,

The "Text file update" feature is indeed available starting with our Enterprise suite.

However, you could achieve something similar through a custom action.

For instance, you could have a little PowerShell script that updates the file.

The article below shows how you can retrieve the value of a property in a custom action:

How to set an installer property using custom actions

Hope this helps!

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

Return to “Building Installers”