This article is about the usage of command line interface. More information about CLI usage and how to get started can be found here: Command Line Interface (CLI) Reference
In order to pack a package from a directory, the directory must contain a valid appx manifest (AppxManifest.xaml
). This command converts such folder into a valid MSIX package, and performs a basic (optional) validation of the manifest file.
Note: The package created by this command will not be signed. To sign a package, make another call to MSIX Hero with verb sign.
The command has the following syntax:
MSIXHeroCLI.exe pack --directory <extraction-path> --package <path-to-package-msix> [--nc] [--nv]
For example:
MSIXHeroCLI.exe pack --directory "c:\download\extracted\msix-hero-extracted" --package "c:\download\msix-hero-1.0.0.0.msix"
You can also use shorter form of arguments. In that case, the command line will be very similar to the one used by MakeAppx.exe
(see link):
MSIXHeroCLI.exe pack -d "c:\download\extracted\msix-hero-extracted" -p "c:\download\msix-hero-1.0.0.0.msix"
Both parameters are required. Additionally, they are 100% the same as in the unpack command, just the action is reversed.
The following parameters are optional:
- –nc (as in NoCompression)
Disables package compression. This is a boolean switch, it does not have to be followed by any value. If omitted, the package is going to be compressed using the default compression algorithm. - –nv (as in NoValidation)
Disables the semantic validation. This is a boolean switch, it does not have to be followed by any value. If omitted, the package will not be validated for the full correctness of the manifest file. Using this switch is not recommended.
The result of execution is an MSIX package, compressed from a folder. The package will not be signed. The program returns the following exit codes:
Exit code | Meaning |
---|---|
0 | The packing process has succeeded. |
1 | Unspecified error. |
2-10 | Invalid parameters or other command-line related errors. |
<any other> | Internal exit code from makeappx.exe . |