Use a license key as a dynamic variable
  • 21 Nov 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Use a license key as a dynamic variable

  • Dark
    Light
  • PDF

Article summary

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.

  1. Go to Manage > Workspace > Licenses.
  2. Create a new license with the following parameters:
    • Name FolderSizes License
    • License count 2
    • License cost 20
    • License key 123-123-123-123
  3. Go to Manage > Workspace > Variables.
  4. 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
  5. Go to Manage > Workspace > Packages.
  6. Create a new package with the following parameters:
    • Type Custom package
    • Name File Size Reporting
      Leave the Modify package after creation selected. Click Finish.
  7. In the detailed view screen that opens, go to Releases > Actions.
  8. Click enlarge.png Create action set in the screen toolbar. Name the action set Install and select the Type Install.
  9. Inside the action set click enlarge.png 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?