Skip to content

Custom Action Templates

Custom action templates in Paquet Builder allow you to reuse predefined groups of actions across projects. They simplify complex workflows by offering ready-made solutions that can be easily imported into your project.

Importing a Template

  1. Open the Custom Action Editor.
  2. Navigate to Action Tools > Action Templates.

  1. A list of available templates is displayed:

  1. Each template includes a title and description. Select the desired template and click OK to import its actions into the selected event.

Managing Template Files

Template files are stored in XML format. Paquet Builder scans the following directories for templates:

  • Application Directory: Paquet Builder\Actions
  • User Profile Directory: C:\Users\MyLOGIN\AppData\Roaming\GDG Software\Paquet Builder\Actions

To add custom templates, place the corresponding XML files in one of these directories.

Creating Custom Templates

  1. Export Custom Actions:
  2. In the Custom Action Editor, use Action Tools > Export Actions.
  3. Select the custom actions you want to export, then save them as an XML file.

  4. Add Template Metadata:

  5. Open the exported XML file in a text editor.
  6. Add the following nodes after the <pbgroup> root node:
    <templatename>Template Title</templatename>
    <templatedesc>Template description explaining its purpose.</templatedesc>
    
  7. Example:

    <templatename>Register File Association</templatename>
    <templatedesc>This template registers a file association for .ext files with your program.</templatedesc>
    

  8. Save and Place the Template:

  9. Move the XML file to one of the directories listed above.
  10. Refresh the list in Paquet Builder by clicking Refresh List.

Available Templates in Paquet Builder

Paquet Builder includes several built-in templates:

  • Enable Silent Mode from Package Command Line: Activates silent mode (no dialogs or messages) using the /s command-line switch.
  • Set Destination Path From Command Line: Sets the main destination folder using the /d switch.
  • Set Language From Command Line: Configures the language of multilanguage packages using the language LCID.
  • Register File Association: Associates files with a specified extension to your software.
  • Retrieve Windows 10 Version: Retrieves the version and build number of Windows 11 or Windows 10.
  • Check Minimum Windows Version: Verifies if the end user's system meets a required Windows version.

Sharing Templates

You can share your templates with the community on the GDG Software forum.

Custom Action Manager
Overview of Custom Actions
Action Properties Editor