What is MSIX Packaging Tool and how does it work?

To further understand the different tools and best practices available to MSIX, this article will dive into the MSIX Packaging Tool.

When you open the MSIX Packaging Tool, you are greeted with a simple interface. Next to the settings button in the upper right corner, you will see the following three features presented as actions:

  1. Application package → Create standalone MSIX package
  2. Modification package → Already have MSIX and need to make modification package
  3. Package editor → Edit an existing package

What is MSIX Packaging Tool and how does it work? Picture 1What is MSIX Packaging Tool and how does it work? Picture 1

Let's take a closer look at each individual task to see if it fits your needs and how it works.

1. Application package

Here is the script that starts when creating the MSIX package. As required, you will need the base application repackaged as an MSIX and a certificate. Remember, all MSIX packages must be digitally signed.

Step 1: Choose the environment

What is MSIX Packaging Tool and how does it work? Picture 2What is MSIX Packaging Tool and how does it work? Picture 2

Regardless of which option you choose, it is best to create the package on a 'clean' computer, similar to the one you are using to deploy the application. This helps to avoid compatibility issues.

Many people prefer to run the process in a virtual machine where the MSIX Packaging Tool is installed to avoid possible communication and configuration issues between machines.

Step 2: Prepare the computer

What is MSIX Packaging Tool and how does it work? Picture 3What is MSIX Packaging Tool and how does it work? Picture 3

MSIX Packaging Tool has a launch detection method before starting the repackaging process. It detects if the required Tool Driver is installed and if there are any services, pending reboots or other interfering items that are active and need to be shut down.

Step 3: Select the installer

What is MSIX Packaging Tool and how does it work? Picture 4What is MSIX Packaging Tool and how does it work? Picture 4

In the Select Installer step, you will browse for your base application installer and specify the installation arguments as needed. Since the MSIX Packaging Tool works like a repackager, it also allows you to create a package without an installer, by adding files and operations that run on the operating system during the process.

Also, an important step here is to define the signing method and actually sign the package. This is important, as every MSIX package must be digitally signed. No exception.

The packager will take two snapshots. One before and one after you install the application or make any modifications in the operating system (i.e. copy files, run executables, etc.). Finally, it will compare the two snapshots and the result will be the MSIX package.

To assist users, Microsoft has created a best practice guide for repackaging an application using the MSIX Packaging Tool. Readers can refer here.

Step 4: Package Information

What is MSIX Packaging Tool and how does it work? Picture 5What is MSIX Packaging Tool and how does it work? Picture 5

You will add package information in this step. You will also notice that "Publisher name" is pre-populated as it automatically pulls the information from the certificate.

Step 5: Install

What is MSIX Packaging Tool and how does it work? Picture 6What is MSIX Packaging Tool and how does it work? Picture 6

When it comes to the installation step, you can run the installation wizard of the base application or manually perform the operations you need, such as copying, moving, deleting or configuring files, etc. Click Click Next when you're done.

Step 6: Launch the first task

What is MSIX Packaging Tool and how does it work? Picture 7What is MSIX Packaging Tool and how does it work? Picture 7

The MSIX Packaging Tool will attempt to detect the entry point(s) of the application. Many shortcut items will need to use PSF.

At the end of this step, the MSIX Packaging Tool will take a second snapshot. Note that the initial snapshot is taken immediately after the second step, when the tool detects any activity that interferes with the repackaging process.

Step 7: Report service

What is MSIX Packaging Tool and how does it work? Picture 8What is MSIX Packaging Tool and how does it work? Picture 8

If your application has any services, they will be listed here. Remember: MSIX services will run outside of the container, that's why they are treated separately.

Step 8. Create the package

What is MSIX Packaging Tool and how does it work? Picture 9What is MSIX Packaging Tool and how does it work? Picture 9

Last but not least, just use the Browse button to select the location where you want to save the package.

2. Modification package (modification package)

Let's say you have deployed an MSIX package and need to create a custom package for it, or in other words create a 'patch'. To do this, you will need to create a modified package.

What is MSIX Packaging Tool and how does it work? Picture 10What is MSIX Packaging Tool and how does it work? Picture 10

You can observe a lot of similarities when packaging and modifying packages.

The main difference here is that in the installer selection step (3rd step) you need to provide the main MSIX package as a reference. The package information will be extracted from there.

However, if you do not want to provide MSIX before or do not have access to the source files, you can skip adding the referenced package and enter the information manually.

The article recommends that you always provide the main MSIX. This way you will avoid any typos that could lead to packet repetition and wasted time.

What is MSIX Packaging Tool and how does it work? Picture 11What is MSIX Packaging Tool and how does it work? Picture 11

As mentioned above, the remaining steps are similar to a simple application packaging process. Follow the stated steps to complete the modified package.

3. Package editor (package editor)

Once you've got an MSIX package and all you want to do is make a quick edit, this option does the job for you. Browse through the package and you will have access to the details inside.

Package information

What is MSIX Packaging Tool and how does it work? Picture 12What is MSIX Packaging Tool and how does it work? Picture 12

  1. Modify any package information
  2. Sign the package with another certificate
  3. Edit manifest.xml

Package editor

What is MSIX Packaging Tool and how does it work? Picture 13What is MSIX Packaging Tool and how does it work? Picture 13

  1. Add any capabilities your MSIX may require
  2. Additional unlisted capabilities can be added to the manifest

Virtual registry

What is MSIX Packaging Tool and how does it work? Picture 14What is MSIX Packaging Tool and how does it work? Picture 14

  1. Browse and edit your computer's hive registry
  2. Browse and edit the user's hive registry
  3. Remember that these are stored registry

Package files

What is MSIX Packaging Tool and how does it work? Picture 15What is MSIX Packaging Tool and how does it work? Picture 15

  1. Add, move, delete files
  2. Add, move, delete folders

Besides, you can also have the option to extract the MSIX package to a specified output location.

4.2 ★ | 10 Vote