Command Line Support
Use mrp.exe and MasterWrapper.exe to automate common Master Packager Suite tasks from the command line.
Executables
| Component | Executable | Default location |
|---|---|---|
| Master Packager Suite, Master Packager, and Master Repackager | mrp.exe | C:\Program Files (x86)\Master Packager\mrp.exe |
| Master Wrapper | MasterWrapper.exe | C:\Program Files (x86)\Master Packager Ltd\Master Packager Suite\MasterWrapper\MasterWrapper.exe |
Master Packager Suite
Activate
Use mrp.exe activate to activate a license.
| Parameter | Description | Required |
|---|---|---|
-email | Email address assigned to the Master Packager license key. | Yes |
-licensekey | Valid license key. | Yes |
-allUsers | Adds the license for all users. | No |
Example
mrp.exe activate -email example@example.com -licensekey "1234567890"
Master Packager
ApplyTemplate
Use mrp.exe ApplyTemplate to apply one or more templates to an MSI package.
| Parameter | Description | Required |
|---|---|---|
<template names> | One or more space-separated template names. Place them immediately after ApplyTemplate. | Yes |
-MsiPath | Path to the MSI file. | Yes |
-MstPath | Path to a new or existing MST file. | No |
Example
mrp.exe ApplyTemplate Template1 Template2 -msipath "C:\Master.msi" -mstpath "C:\Master.mst"
Master Repackager
Capture
Use mrp.exe Capture to create a snapshot of the current system state.
mrp.exe Capture
By default, the snapshot is saved to C:\MRP\Snapshots\Snapshot_timestamp.mrps.
To save the snapshot to a custom path, pass the output path as an argument:
mrp.exe Capture "C:\MRP\Snapshots\Snapshot_260818_204918.mrps"
Build
Use mrp.exe Build to create an MSI package from two snapshots.
| Parameter | Description | Required |
|---|---|---|
-FirstSnapshot | Path to the first .mrps snapshot file. | Yes |
-SecondSnapshot | Path to the second .mrps snapshot file. | Yes |
-inside / -outside | CAB file location. | Yes |
-x86 / -x64 | MSI architecture. | Yes |
-Compression <none; min; normal; max> | Compression level. | No (default: min) |
-CabSize <int> | CAB file size in MB. The maximum value is 2000. | No (default: 300) |
Example
mrp.exe Build -FirstSnapshot "C:\Snapshot1.mrps" -SecondSnapshot "C:\Snapshot2.mrps" -inside -x86 -CabSize 300 -Compression none
Master Wrapper
Use MasterWrapper.exe to open an existing PSADT project or start a new wrapping session.
Open
Open an existing PSADT project.
MasterWrapper.exe open <path-to-psadt-exe-or-ps1>
Example
"C:\Program Files (x86)\Master Packager Ltd\Master Packager Suite\MasterWrapper\MasterWrapper.exe" open "C:\PSADT\Invoke-AppDeployToolkit.ps1"
Wrap
Start Master Wrapper and load the main installer.
MasterWrapper.exe wrap <path-to-exe-or-msi-or-etc>
Example
"C:\Program Files (x86)\Master Packager Ltd\Master Packager Suite\MasterWrapper\MasterWrapper.exe" wrap "C:\Packages\master_packager_suite_26.3.9665.msi"