Cloud "Scripts" (Deployments)
Applies to: Patch My PC Cloud
Note
Using the Scripts tool is optional.
The Scripts tool of the Patch My PC (PMPC) Cloud deployment wizard allows you to configure settings for install and uninstall scripts.
Note
Scripts will be run in the same context as the application.
Each install script is limited to 1 MB per script, with a total size limit of 4 MB for all scripts.
There is a limit of 50,000 characters per script.
We currently support the following script types:
.BAT
.CMD
.PS1
.VBS
Important
Currently, scripts containing "${env:ProgramFiles(x86)}" or "${env:ProgramFiles}" cannot be uploaded as Cloudflare is falsely identifying them as a false positive related to Log4j exploits. We are actively working with them to resolve this, but as this is outside our control, we cannot provide an estimated resolution time.
To work around this issue, see the Resolution section of "TypeError: Failed to fetch" error when trying to upload a Pre or Post Script.
To add a script:
Add the Scripts tool.
Click the Scripts tool.

Note
If the app includes our recommended scripts, you will see the Customer Scripts | PMPC Scripts toggle shown above the Install Scripts section.
See PMPC Scripts for more details on the options you have for managing these scripts.
Click Add beside the relevant script option to add a script, then configure the required settings as per the relevant articles:
Pre-Install Script - a script that can be run before the installer runs.
Post-Install Script - a script that can be run after the installer runs.
Pre-Uninstall Script - a script that can be run before the uninstaller runs.
Post-Uninstall Script - a script that can be run after the uninstaller runs.

Note
If you upload Extra Files as part of your Patch My PC (PMPC) Cloud Deployment, you can reference those files in any of the Scripts in the same deployment by building a path relative to the script's current location. See Referencing Extra Files in Scripts for more information.
Next Steps
If you do not want to configure any additional settings, click Next to move to the Assignments tab.
Otherwise, navigate to the relevant tool to configure the required settings, which are explained in the relevant section.
Last updated
Was this helpful?