Packager PowerShell scripts as executables.
The PowerShell Packager uses the same packaging tools as the PowerShell Pro Tools module and PowerShell Pro Tools for VS Code but provides a simple interface that does not require configuration files or special build tools. This tool currently only supports Windows PowerShell executables.
Running the packager will provide a simple wizard that you can step through to provide details for the resulting executable.
The root script is the script that will run when the executable is run. You can dot source other scripts and import modules in this script. This script will also receive the parameters passed to the executable.
Any dot-sourced script referenced in the root script will be packaged as well. If those scripts include other dot-sourced scripts, they will also be included and so on.
Any module imported with
Import-Modulewill be included with the executable.
These are the properties that will be set on the resulting executable. For example, File Version, Description and Company name.
These are properties of the application itself. These include hiding the console window and Windows UI support.
The folder path to output the resulting executable to.