Scripts
Last updated
Was this helpful?
Last updated
Was this helpful?
Applies to: Patch My PC Cloud
The Scripts tab allows you to configure settings for install and uninstall scripts.
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:
Click the Scripts tab to expose the configurable settings.
Click Add beside the relevant script option to add a script, then configure the required settings in the relevant sections as detailed below.
Scripts that be run as part of the installation process, either before or after the installer.
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.
Pre Install
A script that can be run before the installer. You can either create your own script by typing it directly into the editor or click Import to import an existing script.
Supported file types are:
o .BAT
o .CMD
o .PS1
o .VBS
Post Install
A script that can be run after the installer. You can either create your own script by typing it directly into the editor or click Import to import an existing script.
Supported file types are the same as pre-install scripts.
Scripts that be run as part of the uninstall process, either before or after the uninstaller.
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.
Pre Uninstall
A script that can be run before the uninstaller. You can either create your own script by typing it directly into the editor or click Import to import an existing script.
Supported file types are:
o .BAT
o .CMD
o .PS1
o .VBS
Post Uninstall
A script that can be run after the uninstaller. You can either create your own script by typing it directly into the editor or click Import to import an existing script.
Supported file types are the same as pre-install scripts.
Configure any other settings on the Configurations page as required, then click Next to move to the Assignments page.