PMPC Scripts

Applies to: Patch My PC Cloud

For certain applications in the Patch My PC (PMPC) App Catalog, we include scripts to enhance the installation and configuration of the app, based on our experience. By default, if an app includes one of our recommended scripts, these are automatically executed at the time the app is installed.

However, this default behavior can cause issues for some customers who are not aware of the scripts and their contents.

To give you better visibility and to allow you to customize the deployment process, for those apps that include our recommended scripts, you will now see the Customer Scripts | PMPC Scripts toggle on the Scripts tool page of the Configurations tab of the PMPC Cloud Deployment Wizard.

“Customer Scripts | PMPC Scripts” toggle

Contrast this to an app that does not include any recommended scripts.

App without the “Customer Scripts | PMPC Scripts” toggle

Viewing PMPC Scripts

To view the PMPC scripts, click the PMPC Scripts toggle.

Clicking “PMPC Scripts”

Any recommended scripts included with the app are shown.

Recommended PMPC Scripts

Once you have clicked PMPC Scripts, you can:

  • Hover over the script’s name to see its location.

  • Click the script, which will open it in a new browser tab so you can see its contents.

  • Click Edit to open the script in the relevant script editor window.

Script editor window

Note

In the current release, you cannot modify the script’s name, format, contents, or arguments. You can disable the script as detailed in Disable a PMPC Script.

Disable a PMPC Script

If you do not want to use our recommended scripts in your deployments, you can disable them (although we’d recommend you do not do this unless you have a genuine reason for doing so).

To disable a PMPC script:

  1. Either deploy or edit an existing deployment for the relevant app.

  2. Navigate to the Configurations tab.

Navigating to the “Configurations” tab
  1. Click the Scripts tool if it is not already selected.

Clicking the “Scripts” tool
  1. Click PMPC Scripts

Clicking “PMPC Scripts”
  1. Click Edit beside the relevant script.

Clicking “Edit” beside the relevant script
  1. If the app includes a recommended Post-Install script, go to Step 9.

  2. If the app includes a recommended Pre-Install script, you have the option of checking either or both of the following checkboxes:

    1. Don’t attempt software update if the pre script returns an exit code other than 0 or 3010

    2. Disable the Patch My PC Recommended Pre-Install scripts for this product

Checking the required “Pre-install checkboxes.
  1. Goto Step 10.

  2. If the app includes a recommended Post-Install script, check the Disable the Patch My PC Recommended Post-Install scripts for this product checkbox.

Checking the “Disable the Patch My PC Recommended Post-Install for this product” checkbox
  1. Click Save

The Configurations tab is displayed.

If either a Pre or Post-Install script has been disabled, a red circle is shown beside the script to indicate this and that it will not be included as part of the deployment.

Red circle is shown beside the script to indicate this and that it will not be included as part of the deployment.

Note

Checking the Don’t attempt software update if the pre script returns an exit code other than 0 or 3010 checkbox for a Pre-Install script does not cause the red circle to be displayed.

Enable a PMPC Script

If you have previously disabled a PMPC Script, you can re-enable it by editing the deployment and following the Disable a PMPC Script section, but uncheck the Disable the Patch My PC Recommended <script_type> for this product checkbox.

When you click Save to save the deployment, a new deployment will be created that includes the script.

How new versions are handled

If you create a deployment for an app and disable the PMPC Scripts, when your Sync Schedule runs and creates a new deployment for the new version, we check the existing deployment, and if you have disabled any scripts, we will also disable them for the new deployment of the new version.

Last updated

Was this helpful?