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!

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

License Command-line Parameter

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: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: License Command-line Parameter

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

Thank you.

Is this only available for an Enterprise license?
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: License Command-line Parameter

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”