Skip to main content

Fileset Scripts Overview

Fileset scripts can check eligibility, prepare an installation, activate content, verify the result, and clean up during removal. FileWave organizes those actions into seven activation states:

  • Requirements
  • Preflight
  • Activation
  • Postflight
  • Verification
  • Pre-Uninstallation
  • Post-Uninstallation

In FileWave Central, open Filesets, select the Fileset, and click the Scripts toolbar icon. The Scripts dialog groups each script by the activation state where it runs.

Fileset Scripts dialog showing the seven script activation states

Scripts within the same activation state run from top to bottom. Drag scripts within the list to control their execution order.

Use the create or import buttons to add a script. On macOS, you can also drag a script from Finder into the dialog. Open an existing script to edit its contents or properties.

Click OK to save changes to the Fileset. Click Cancel to discard the changes.

Double-clicking a script opens the file properties dialog. Most script attributes can be changed in the same way as files in an open Fileset, but some settings are locked because the Fileset workflow depends on them. For example, the Execute flag cannot be cleared. Requirement scripts also cannot be changed between interactive and non-interactive execution because the client must be able to use the script exit code to decide whether the Fileset should download.

The checkbox Re-run requirement scripts on change and uninstall active Fileset if they failed controls the same setting as Evaluate requirements on change and uninstall active Fileset if they failed in the Fileset's Requirements tab. When enabled, a Fileset change makes the client evaluate all requirements again. If any requirement fails, FileWave uninstalls the active Fileset, so test this behavior before enabling it on production targets.

Fileset script types

  • Requirements Scripts – Run before the Fileset or its dependencies are downloaded. If any requirement script returns a non-zero exit code, the Fileset and its dependencies are not downloaded or installed.
  • Preflight Scripts – Run after dependencies are installed, but before the Fileset downloads. If any preflight script returns a non-zero exit code, the Fileset is not downloaded or installed.
  • Activation Scripts – Run when the Fileset is activated.
  • Postflight Scripts – Run after the Fileset installation has completed.
  • Verification Scripts – Run after postflight scripts and during each verification of the Fileset.
  • Pre-Uninstallation Scripts – Run when a Fileset is inactivated, immediately before the Fileset is uninstalled. Use this state when the script needs access to files that self-healing will remove during uninstall.
  • Post-Uninstallation Scripts – Run immediately after the Fileset and its dependencies have been uninstalled or removed from the client.