Creating templates

If you want to define your own templates, you can do this simply by creating a new directory in the "Templates" subdirectory of the installation directory and copying the files necessary for the template into it. At least these are:

  • Script.ps1
    The script template that serves as the basis for the new script to be created. It is a "normal" PowerShell script, which you can also create or edit with the Packaging PowerBench and then use as a template.
  • Package.xml
    The package properties file with the properties of the package. If required, you can add your own properties to the standard file from the default directory.
  • Template.xml
    The definition file of the template, which contains name and description. You can define additional directories to be included in a new package (entries "IncludeContent") or an individual package logo (entry "Image").
  • <Packageicon file>.png (optional)
    Place a package icon file in PNG format with the dimensions 64x64 pixels in the directory. This will be displayed in the "New Package" dialog when the template is created. The file does not have to be named "Template.png". If you want to use an individual graphic, you must specify the name (even if you use the default name) in the "Image" entry of the "Template.xml".