Script Templates
Script Templates let you customise the PowerShell App Deployment Toolkit (PSADT) scripts that Robopack uses when packaging applications.
What is PSADT?
The PowerShell App Deployment Toolkit is a framework for standardising application deployment. It provides:
- Consistent install/uninstall behaviour across all apps
- User notification capabilities
- Pre/post-install script hooks
- Logging and error handling
PSADT versions
Robopack supports both PSADT v3 and PSADT v4.1:
| Version | Status |
|---|---|
| PSADT v3 | Default for new packages and flows |
| PSADT v4.1 | Available as a script template option |
You can select PSADT v4.1 when creating a package or flow, or create your own custom template based on v4.1 in Settings > Script Templates.
The commands supported by PSADT have changed between v3 and v4. If you have Custom App Settings that use PSADT commands, make sure you have migrated them before switching to a v4-based template.
Default template
Every Robopack organisation starts with a default PSADT template. This works out of the box for most applications.
Custom templates
You can create custom templates to:
- Add pre-install checks (e.g. close running applications)
- Configure user notifications (welcome dialog, completion dialog)
- Add post-install configuration steps
- Customise logging behaviour and log file locations
- Set organisation-specific defaults
Dialog options
Script templates offer several options for PSADT dialogs:
- Show the welcome dialog for uninstall in addition to install
- Disable showing the welcome dialog in front of other windows
- Disable minimising other windows when the welcome dialog is shown
- Show a completion dialog when installation finishes (with customisable text)
- Display toast notifications to inform users about installations in progress or completed
Templates are managed in Settings > Script Templates and can be selected when building any package.
Installation script signing
Robopack automatically signs all generated PowerShell installation scripts. By default this uses a Robopack-generated certificate, which can be changed in Settings.
ServiceUI support
ServiceUI is automatically included for generated script packages that need it, allowing PSADT dialogs to be displayed to users when the app is deployed in the machine scope.
Related
- Tutorial: Deploying Your First App — uses the default PSADT template
- Custom Packaging