Skip to main content

Actions available when creating packages

Applies to: Medulla – Packages
Version: All versions
Environment: On-Premise / Private SaaS / Shared SaaS
Category: Usage

When you create a package (doc: Create a package), Medulla displays a two-column editor: on the left, Available Actions (the available actions); on the right, Deployment Workflow (your deployment sequence).

To build your package, drag an action from the left column to the right column. Each action becomes a step in the sequence, which will run from top to bottom on the target computer. You can reorder the steps using drag-and-drop, and expand each step to configure its options.

This page describes, for each action, what it does and the important settings you need to know.


Some common concepts

  • Step label: Each step has a label. It serves as a reference and, most importantly, as the destination for “go to step” jumps. A label is suggested automatically, but you can rename it for easier reference (e.g., install_msi).
  • Go to step (goto): Several actions allow you to redirect the sequence to a specific label. There are always two special destinations: END_SUCCESS (successful completion) and END_ERROR (error).
  • Options: The Options button for each step displays advanced settings (timeout, alternate package, etc.), which are hidden by default.
  • Alternate package: For actions that manipulate files or commands, you can check this option to run the action from a package other than the one currently being edited.

Command and script actions

Run command

Runs a command line on the target computer. This is the most common action for launching an installer or a system command (e.g., msiexec /i app.msi /qn).

Key settings:

  • Command: the command to execute.
  • Set timeout: maximum execution time, in seconds (800 by default).
  • Return result: Selects what Medulla retrieves from the output (the first or last lines, or the complete result).
  • On return code, goto: redirects the sequence based on the command’s return code. You enter a condition and the destination label. By default, a rule “!=0 → END_ERROR” is in place: any code other than 0 is considered an error. Possible conditions: an exact value (0, ==3), a difference (!=0), a comparison (<5, >=10), or an interval (IN1,5, OUT-5,5).

Execute script

Writes a complete script to the target computer, then executes it using the selected interpreter. Best used when a simple command line is not sufficient.

Key settings:

  • Script language: the interpreter—Native (Windows batch / Linux and macOS bash), Python, VBScript (Windows), PowerShell (Windows), Korn Shell, or C Shell (Linux & macOS).
  • Script: The content of the script.
  • Force suffix / Force hash-bang: Advanced settings to specify the file extension or shebang (#!) instead of those inferred from the language.
  • Set timeout and Return result: same as for “Run command.”
  • On return code, goto: conditional branching based on the return code (same conditions as above).

System and file actions

Set Environment variables

Sets one or more environment variables for the rest of the sequence.

Key setting: Enter your variables in the format clé :: valeur, one per line, separated by commas (e.g., LANG :: fr_FR, LOGLEVEL :: INFO).

Restart

Restarts the computer or the Medulla agent.

Key setting: Target Restart — Restart Machine (restarts the computer) or Restart Agent Machine (restarts only the Medulla agent on the computer).

Set config file parameter

Adds or removes a parameter in an INI-type configuration file (file / section / key / value).

Key setting: The Config action description field describes the operation:

  • Add: add@__@fichier.ini@__@section@__@clé@__@valeur (e.g., add@__@agentconf.ini@__@global@__@log_level@__@INFO).
  • Delete: del@__@fichier.ini@__@section@__@clé.

Unzip File

Unpacks a ZIP archive on the target computer.

Key settings:

  • Zip file: the ZIP file to unzip (name in the package folder, or full path).
  • Unzip to specified folder: destination folder (otherwise, extraction to the current folder).
  • Go to step / On success / On error: Destination steps based on the result.

Download File

Downloads a file from a URL to the target computer.

Key settings:

  • Download File: The URL of the file to download.
  • Destination name: You can specify the name of the downloaded file; otherwise, the name is derived from the URL.

Remove uploaded files

Clears the package files stored on the computer. This is typically placed at the end of the sequence to ensure nothing is left behind. No settings: only the step label can be modified.


Section markers

These three actions do “nothing” on their own: they are used to classify the steps that follow them into the correct phase of the software’s lifecycle. They have no settings.

  • Install Section: The following steps are part of the installation.
  • Update Section: The following steps are part of the update process.
  • Uninstall Section: The following steps are part of the uninstall process.

User and Kiosk interactions

Kiosk Progression

Sends a message—and optionally a progress indicator—to the user’s Kiosk.

Key settings: the message to display, and optionally a progress percentage (1 to 100) to indicate the deployment’s progress.

User Notification

Displays an information window (with an “OK” button) to the user logged in on the computer.

Key settings:

  • Message box title and Message: the title and text displayed (with adjustable font size for each).
  • True button text: the button label (default “OK”).
  • Set timeout: maximum time to wait for a response.

User Question

Asks the user a YES/NO question and directs the sequence based on their response.

Key settings:

  • Message box title and Question: the title and the question asked.
  • True / False button text: the labels for the two buttons (default: “Yes” and “No”).
  • Go to step depending on the situation: Yes answer, No answer, no user logged in, or timeout.
  • Set timeout: maximum wait time for a response.

User Postpone Options

Allows the user to postpone an action (such as a restart) a limited number of times at regular intervals. This is useful for avoiding interruptions to the user’s work while ensuring the action is eventually executed.

Key settings:

  • Title, Question, and button labels: same as for the Yes/No question.
  • Go to step depending on the situation: Yes response, maximum number of postponements reached, no user, or timeout.
  • Maximum allowed postponements: number of allowed postponements (1 by default).
  • Interval: time between two prompts to the user (900 seconds by default).

Flow control

Wait and go to step

Pauses for a specified number of seconds, then redirects the sequence to the step of your choice (END_SUCCESS by default). Useful for allowing time for a service to start before the next step.

Add info in deployment log

Writes a custom message to the deployment log to track or annotate the execution. You can insert dynamic variables enclosed in @@@, which are replaced at runtime—for example, @@@PACKAGE_NAME@@@, @@@HOSTNAME@@@, @@@OS_FAMILY@@@, @@@IP_MACHINE@@@, or @@@UUID_PACKAGE@@@.


End steps (automatic)

Every new package automatically contains two exit steps, which you do not drag from the palette. They are the targets of the END_SUCCESS and END_ERROR jumps.

  • End Success: “success” exit point. Two useful options: Delete package (whether or not to delete the package files from the computer upon completion) and Inventory (trigger an inventory—forced, never, or only if changes occur).
  • End Error: “failure” exit point. No settings.

Once your sequence is complete and the package is saved, you can deploy it: see Software Deployment.