Package Testing Commands

The program facilitates testing of generated packages through a command-line interface. This testing ensures that packages install and uninstall correctly, and verifies the proper functioning of the installed program. To initiate testing via the command-line, execute the command below:

PackageBuilderCMD.exe -test-deployment <package-path> [-m <test-mode>] [-l <log-path>] [-s]

Parameter

Optional

Description

<package-path>

No

Path to the MSI, App-V or MSIX/AppX package for testing.

-m <test-mode>

Yes

Mode for testing the package.

-l <log-path>

Yes

Path to the root directory to store log files.

-s

Yes

Run command in Windows Sandbox.

Example:

PackageBuilderCMD.exe -test-deployment c:\Projects\AdobeReader.msi

To conduct deployment testing, you must provide the path to the packages being tested. While other options are available, they are not mandatory. Testing is executed on the local machine by default; however, you may opt to perform tests in Windows Sandbox by using the appropriate option.

The program offers various testing modes, with the default being a full test. This comprehensive test includes the installation of the package, execution of the deployed program, and subsequent uninstallation. The available testing modes are as follows:

Testing Mode

Description

full

The full testing is performed, including the package deployment, executing the deployed program and package uninstallation.

run

The program deployment and execution of the deployed program are tested only.

install

The program deployment is tested only.