Condition Scripts are the section of Custom Software that allows the software deployment to either proceed with the installation attempt, or skip the deployment on the device. If you'd like to see the overview of Custom Software as a whole, check out our KB article on Creating Custom Software.
Addigy offers 2 types of condition scripts: Check for a path and Check for an application version.
Check for a path
This will check to see if a file or folder exists at the path specified with 2 options: set Failure and set Success.
- Set Failure will only install the Custom Software if the file or folder does not exist on the device.
- Set Success will only deploy the Custom Software if the file or folder is already on the device.
Check for an application version
This will not only check if the app is on the device, but it also checks if the app on the device is Older than or Newer than or same as the specified version.
Just like in Check for a path, Success will make the condition script run if it is True, while Failure will make the script run if it is False.
Below is an example of condition script input that will only install if the version of the software on the device is older than 1.2.3 and will skip installation if the current version of the software is the same as 1.2.3 or a greater version than 1.2.3.