Use a license key as a dynamic variable
- 21 Nov 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Use a license key as a dynamic variable
- Updated on 21 Nov 2024
- 1 Minute to read
- Print
- DarkLight
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Creating a dynamic variable for a license key can help you save time instead of wasting it searching for a key each time you install an application. Then you use that variable inside an Install action as a placeholder for a dynamically value obtained by Liquit Workspace.
In the example below we will create a dynamic variable for the license key of FolderSizes, a disk space analysis software.
- Go to Manage > Workspace > Licenses.
- Create a new license with the following parameters:
- Name FolderSizes License
- License count 2
- License cost 20
- License key 123-123-123-123
- Go to Manage > Workspace > Variables.
- Create a new variable with the following parameters:
- Type Dynamic
- Name FolderSizes_License
- Entity type License
- Entity select the FolderSizes License created at step 2
- Property License key
- Go to Manage > Workspace > Packages.
- Create a new package with the following parameters:
- Type Custom package
- Name File Size Reporting
Leave the Modify package after creation selected. Click Finish.
- In the detailed view screen that opens, go to Releases > Actions.
- Click Create action set in the screen toolbar. Name the action set Install and select the Type Install.
- Inside the action set click Create action in the table toolbar. Insert the following parameters:
- Type Start process
- Name Start fs9-setup.exe
- Process select the fs9-setup.exe file
- Arguments /qn LICENSECODE=$(FolderSizesLicense)
The installer is run silently and it gets the license key from your variable. Now you only have to think how you want to make the app available to your users and create actions accordingly.
Was this article helpful?