<< Click to Display Table of Contents >> RayPack > 7.3 u6 > User Guide > Advanced Topics Custom PackWrapper Templates |
It is possible to define custom templates for the PackWrapper module, for example to:
•Add new custom functions
•Change the banner (logo)
•Define custom actions
•And for other purposes
To customize the default toolkit, perform the following steps:
1.Make a copy of the following folder (so that the original template remains unchanged and it is always possible to revert back to it):
<PackPointFolder>\Resources\Wrappers\PSAppDeploymentToolkit
2.Go to Project settings and change the folder path to the new location
Once saved, all wrapper created with the currently selected profile will use the new folder as the template. In the new folder, it is possible to freely customize the wrapper, specifically:
•Replace banner image (.png) with a custom image
•Add any custom files with custom functions (they will be added automatically to resulting wrappers)
•Edit the content of existing files, add new functions, or extend the existing ones
•Change the XML configuration
The following tokens can be used inside Deploy.ps1 file - they will be replaced by real values when a wrapper is created:
•Application vendor: {@appVendo}
•Application name: {@appName}
•Application version: {@appVersion}
•Application architecture: {@appArch}
•Application language: {@appLang}
•Application revision: {@appRevision}
•Script version: {@appScriptVersion}
•Script date: {@appScriptDate}
•Script author: {@appScriptAuthor}
Note: Adjusting the toolkit is not a trivial task and requires an extensive knowledge of PowerShell and the toolkit itself. Refer to the official documentation http://psappdeploytoolkit.com for a guide on how to use the functions and modules. |