Skip to main content

Command Line Support

Use mrp.exe and MasterWrapper.exe to automate common Master Packager Suite tasks from the command line.

Executables

ComponentExecutableDefault location
Master Packager Suite, Master Packager, and Master Repackagermrp.exeC:\Program Files (x86)\Master Packager\mrp.exe
Master WrapperMasterWrapper.exeC:\Program Files (x86)\Master Packager Ltd\Master Packager Suite\MasterWrapper\MasterWrapper.exe

Master Packager Suite

Activate

Use mrp.exe activate to activate a license.

ParameterDescriptionRequired
-emailEmail address assigned to the Master Packager license key.Yes
-licensekeyValid license key.Yes
-allUsersAdds 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.

ParameterDescriptionRequired
<template names>One or more space-separated template names. Place them immediately after ApplyTemplate.Yes
-MsiPathPath to the MSI file.Yes
-MstPathPath 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.

ParameterDescriptionRequired
-FirstSnapshotPath to the first .mrps snapshot file.Yes
-SecondSnapshotPath to the second .mrps snapshot file.Yes
-inside / -outsideCAB file location.Yes
-x86 / -x64MSI 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"