Add automation scripts, CMD for Packages

Define the automation scripts/command lines that the Engineer can view and run against packages of this project in the desktop client.

Important

Precondition 1 : You have the Supervisor role.
Precondition 2 : Sign In on Web Portal of PACE Packager Hub.
  1. Go to the project settings. See manual Open project settings.
  2. Open the Automation tab and click New > Command line or Script to add a new automation.

    project-edit-automation-new

  3. Specify the automation parameters and click Save.
    • Name - a name of the automation item that will be displayed to the user

    • Description - a text that will be displayed to the user in the tooltip

    • Script (available only for Script automation) - a script file that will be run by this automation. The body of the script is stored in the solution database and protected from accidental changes by third parties. The maximum file size is 1 MB. Supported formats: VBS, JS, CMD, PS1.

    • Command line (available only for Command line automation) - a command line string that will be run by this automation.

    • Run as administrator - if selected, the automation script/command line will be run with the administrative privileges.

    • Arguments - a list of arguments (parameters) that will be passed to the run script/command line. Solution supports arbitrary combination of static and dynamic arguments. List of dynamic arguments:

      • %path-to-output-pkg% - returns a path to folder of the ‘For output package’ purpose

      • %path-to-pkg-doc% - returns a path to folder of the ‘For package documentation’ purpose

      • %path-to-in-resources% - returns a path to folder of the ‘For incoming resources’ purpose.

      • %ask-user-for-path-to-folder% - prompts the user to select a path to any folder via UI and returns the selected path to the automation item

      • %ask-user-for-path-to-file% - prompts the user to select a path to any file via UI and returns the selected path to the automation item

      • %pkg-name% - returns a value of the ‘Package Name’ attribute of the Package

      • %pkg-id%- returns a value of the ‘ID’ attribute of the Package

      • %pkg-tech% - returns a value of the ‘Packaging Technology’ attribute (e.g. MSI, MSIX, APPX, APPV, etc.) of the Package

      • %pkg-arch% - returns a value of the ‘Architecture’ attribute (e.g. x86, x64) of the Package

      • %pkg-creation-date% - returns a value of the ‘Creation Date’ attribute the Package in format: YYYYMMDD-HHMMSS.

    project-edit-automation-new-cmd-save project-edit-automation-new-script-save

  4. To change the existing automation item, click Edit pencil-button in the Actions column.

    project-edit-automation-list

  5. Update the necessary parameters of automation and click Save.

    project-edit-automation-new-script-save

  6. To temporary hide/show the automation item for Engineer, click Disable / Enable button-enable-disable in the Actions column.

    project-edit-automation-list




Note

PACE Packager Hub PACE Packager Hub is an end-to-end ecosystem that is fully dedicated to customer servicing, teamwork, and management of packaging tasks in teams of any size - learn more.

Try PACE Packager Hub for free - 21 days no obligations unlimited trial with all functions unlocked.