Package Building and Signing Commands

If you have a project, you can generate a package using the project content. It is possible to generate a package in the MSI, App-V and AppX/MSIX formats.

MSI Package Generation

To generate an MSI package, you can run the following command:

PackageBuilderCMD.exe -build-msi <project-path> <package-path> [-g <guid>] [-u <guid>] [-m <manufacturer>] [-n <product-name>] [-l <language-id>] [-v <version>] [-p <x86|x64>]

Parameter

Optional

Description

<project-path>

No

The path to the project used to generate an MSI package.

<package-path>

No

The path to the MSI package output file.

-g <guid>

Yes

Set the product GUID for the generated MSI package.

-u <guid>

Yes

Enable an upgrade for the generated MSI package with the specified GUID.

-m <manufacturer>

Yes

Set the manufacturer for the generated MSI package.

-n <product-name>

Yes

Set the product name for the generated MSI package.

-l <language-id>

Yes

Set the MSI package language.

-v <version>

Yes

Set the MSI package version.

-p <x86|x64>

Yes

Set the MSI package platform.

To generate an MSI, you need to specify a path to the project and the output file only. Other parameters are optional. For example, you can use the following command to generate an MSI package:

PackageBuilderCMD.exe -build-msi c:\Projects\AdobeReader c:\Projects\AdobeReader.msi

The project name, manufacturer, version and other settings should be specified in the project, so that you don’t have to specify them when you generate a package from the command-line. If those settings are missing for some reason, you can specify them using the corresponding command-line parameters.

App-V Package Generation

To generate an App-V package, you can run the following command:

PackageBuilderCMD.exe -build-appv <project-path> <package-path> [-g <guid>] [-m <manufacturer>] [-n <product-name>] [-l <language-id>] [-v <version>] [-p <x86|x64>]

Parameter

Optional

Description

<project-path>

No

The path to the project used to generate an App-V package.

<package-path>

No

The path to the App-V package output file.

-g <guid>

Yes

Set the product GUID for the generated App-V package.

-u <guid>

Yes

Enable an upgrade for the generated App-V package with the specified GUID.

-m <manufacturer>

Yes

Set the manufacturer for the generated App-V package.

-n <product-name>

Yes

Set the product name for the generated App-V package.

-l <language-id>

Yes

Set the App-V package language.

-v <version>

Yes

Set the App-V package version.

-p <x86|x64>

Yes

Set the App-V package platform.

Example:

PackageBuilderCMD.exe -build-appv c:\Projects\AdobeReader c:\Projects\AdobeReader.appv

MSIX/AppX Package Generation

To generate an MSIX/AppX package, you can run the following command:

PackageBuilderCMD.exe -build-appx <project-path> <package-path> [-a <package-name>] [-u <publisher>] [-d <package-description>] [-m <manufacturer>] [-n <product-name>] [-l <language-id>] [-v <version>] [-p <x86|x64>]

Parameter

Optional

Description

<project-path>

No

The path to the project used to generate an MSIX/AppX package.

<package-path>

No

The path to the MSIX/AppX package output file.

-a <package-name>

Yes

The package name.

-u <publisher>

Yes

The name of the package publisher (in the Relative Distinguished Name (RDN) format)

-d <package-description>

Yes

The package description.

-m <manufacturer>

Yes

Set the manufacturer for the generated MSIX/AppX package.

-n <product-name>

Yes

Set the product name for the generated MSIX/AppX package.

-l <language-id>

Yes

Set the MSIX/AppX package language.

-v <version>

Yes

Set the MSIX/AppX package version.

-p <x86|x64>

Yes

Set the MSIX/AppX package platform.

Example:

PackageBuilderCMD.exe -build-appx c:\Projects\AdobeReader c:\Projects\AdobeReader.appx

Package Signing

You can digitally sign a package using the sign command. You can find detailed information on digital signatures in the signing packages chapter. To digitally sign a package, run the following command:

PackageBuilderCMD.exe -sign-package <package-path> <certificate> [-p <password>] [-t <timestamp-url>]

Parameter

Optional

Description

<package-path>

No

The path to the AppX or MSI package to sign.

<certificate>

No

The path to the certificate pfx file to sign the package with.

-p <password>

Yes

The certificate password.

-t <timestamp-url>

Yes

The timestamp URL to use in the signing process.

Example:

PackageBuilderCMD.exe -sign-package c:\Projects\AdobeReader.msi c:\certificate.pfx