Master Packager Templates feature is designed to allow automate repetitive tasks application packagers perform on MSI/MST. Templates can work also as one-place storage for your favorite Custom Actions that can be applied with one click. PowerShell support allows to create and store custom PowerShell scripts that will be executed when the Template is being applied adding returned PowerShell Script value to the MSI table.
Master Packager Team occasionally add custom predefined templates as samples and a great source for automation.
Template feature support automation for the following tables:
For Properties
For Registries
For Custom Actions
If selected Custom Actions are using rows in binary table, no extra steps are needed as Template feature will see it and save binaries as well.
For Summary Information
Select in which situation to apply Summary Information changes using Apply On dropdown and edit rest of the values.
To delete the value from Summary Information use: <delete>
Applying this Template to the MSI or MST it will delete the value and will leave it blank.
Example:
[PROPERTY_property_table_name]
Example:
[PROPERTY_COMPANYNAME] will be resolve value of COMPANYNAME property in the Property table when Template is applied.
There could be a situation when property value needs to be resolved only on MSI installation, not on the moment the template is applied. To do that use square brackets and template will not resolve Property value.
Example:
[COMPANYNAME] will be resolved as [COMPANYNAME]
To use custom PowerShell script return value use PowerShell script name in square brackets.
Example:
For PowerShell script with name PS_COMPANYNAME use [PS_COMPANYNAME] in the template.