Cloud Pre-Uninstall Scripts

Applies to: Patch My PC Cloud

A Pre-Uninstall Script is a script that can be run before the uninstaller runs.

To add a Pre-Uninstall script:

  1. Click Add beside the Pre-Uninstall option.

Clicking “Add” beside the “Pre-Uninstall” option
  1. To import an existing script, click Import then browse to the location containing the script and select it.

Clicking “Import” to import an existing script

The Add Pre-Uninstall Script page is populated with the imported script.

“Add Pre-Uninstall Script” page is populated with the imported script.
  1. To manually add a script, enter a unique name for the script in the Script Name field.

Entering a unique name for the script in the “Script Name” field
  1. Select the type of script from the Script Format dropdown.

Selecting the type of script from the “Script Format” dropdown.
  1. In the script editor, type your script.

Note

We currently have a limit of 50,000 characters per script. Use the Number of characters used counter to keep track of the number of characters you’ve entered in the script editor.

  1. In the Arguments field, enter any arguments you want to provide to the script.

    Entering any arguments you want to provide to the script by specifying them in the “Arguments” field
  1. Check the Don’t attempt software uninstall if the pre script returns an exit code other than 0 or 3010 checkbox if you don’t want the app to be uninstalled if the pre-script returns an exit code other than 0 or 3010. If you do not check this checkbox, we will attempt to uninstall the app regardless of the exit code returned by the pre-install script.

    Checking the “Don’t attempt software uninstall if the pre script returns an exit code other than 0 or 3010” checkbox
  2. Check the Run the pre-uninstall script before performing any auto-close or skip process checks checkbox if you want to run the pre-uninstall script before the conflicting process notification is displayed (if relevant). If you do not check this checkbox, we will run the pre-uninstall script after the conflicting process notification.

    Checking the “Run the pre-uninstall script before performing any auto-close or skip process checks” checkbox
  3. Click Save to save your script.

    Clicking “Save” to save your script

    The Configurations tab is re-displayed with the name of the configured script beside it.


If you do not want to configure any of the optional tabs under the Tools section, click Next to move to the Assignments tab.

Otherwise, click on the relevant tab under Tools to configure the required settings, which are explained in the relevant article.

Last updated

Was this helpful?