Skip to main content

Fileset Scripts Overview

FileWave 11+ provides the ability tocan run a scriptscripts at any of seven stages of Fileset deploymentdeployment, (called Activationactivation States)states:

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

In FileWave Admin, while inopen the Filesets view, select the Fileset you want to edit, and click the Scripts toolbar nowicon. contains a Scripts icon.

QfmVfI4XcQ1138NU-embedded-image-l80rcnzl.png


When you select a given Fileset, then click on the Scripts icon, theThe Scripts dialog opens

zF04tsW7k78GexaK-embedded-image-fxwzjver.png

The dialog shows theeach scripts that will be executed for the given Filesetscript and the activation state inwhere which theyit will berun.

executed.

Fileset Scripts dialog showing the seven script activation states

The order

Scripts in which scripts of the same activation state and Fileset are executed is the same as they appear in the list (i.e.run from top to bottom).bottom as shown in the list. Drag scripts to change their execution order.

Use the create or import buttons to add scripts. You can dragalso & drop scripts in order to change the execution order.

You can create and import scripts by clicking the corresponding buttons. Editingedit a scriptscript, isor also possible, so is dragging and droppingdrag a script from Finder ininto orderthe dialog to import it.

AnyClick OK to save changes to the FilesetFileset. willClick beCancel appliedto when you click OK. If you click Cancel,discard the currentchanges.

changes

Double-clicking willa bescript lost andopens the Filesetfile willproperties notdialog. beMost modified.

script

Scripts in the listattributes can be double-clicked, which causes the file property dialog to appear. You can change most of the attributes of the scriptchanged in the same way as files in an open Fileset, but some settings are locked because the open Fileset dialog.workflow Theredepends are,on however, certain attributes you cannot change.them. For instance, you cannot unsetexample, the Execute flag;flag therefore,cannot itbe iscleared. disabled.Requirement Forscripts requirementalso scripts,cannot itbe ischanged notbetween possibleinteractive and non-interactive execution because the client must be able to change the interactive/non-interactive option, since the exit code ofuse the script isexit requiredcode to decide whether the Fileset should be downloaded. Therefore, this field is also disabled.
download.

The checkbox "Re-run requirement scripts on change and uninstall active Fileset if they failed"failed controls the same internal setting as the checkbox "Evaluate requirements on change and uninstall active Fileset if they failed"failed in the Requirements tab of the Fileset properties. IfWhen checked,this whenoption ais Filesetenabled needs to be updated, the Client checks the requirements ofand the Fileset again.changes, Thisthe includesclient executingre-evaluates the Fileset requirements, including requirement scripts. If any of the requirementsrequirement or requirement scriptsscript fail,fails, the Fileset will beis uninstalled.

Fileset Scriptsscript Typestypes

  • Requirements ScriptsARun requirements script checks the requirement onbefore the Fileset beforeor anyits dependencies are downloaded. If any requirement script failsreturns (returna non-zero),zero thenexit code, the Fileset and its dependencies willare not be downloaded noror installed.
  • Preflight ScriptsARun preflightafter scriptdependencies checksare theinstalled, needs of the Filesetbut before the Fileset downloads, but after dependencies have been installed.downloads. If any preflight script fails (returns a non-zero),zero thenexit code, the Fileset won'tis benot downloaded or installed.
  • Activation ScriptsAnRun activationwhen scriptthe Fileset is executed upon activation of the Fileset.activated.
  • Postflight ScriptsA postflight script is executedRun after the Fileset installation of the Fileset has completed.
  • Verification ScriptsA verification script is executedRun after postflight scripts and uponduring everyeach "verification of the Fileset."
  • Pre-Uninstallation ScriptsARun pre-uninstallation script is executed on inactivation of a Fileset and right beforewhen a Fileset is inactivated, immediately before the Fileset is uninstalled. (UsefulUse ifthis state when the script needs access to reference a filefiles that self-healing will subsequentlyremove beduring removed due to self-healing).uninstall.
  • Post-Uninstallation ScriptsARun post-uninstallation script is executed rightimmediately after uninstalling/removing the Fileset from a client and its dependencies.dependencies have been uninstalled or removed from the client.