We talked recently about PackageVolume as one of the ways to stage packages.
Let's turn our gaze to External Location, which plays a distinct role in MSIX, with similarities to - and important differences from - other options.
Why is External Location?
MSIX deployment provides a full-service software installation stack. The process is simple: co...
We often talk about "running an application", "launching an app", or "starting an app". This conjures up visions of spinning up a new process, giving the application life.
For packaged applications, Windows has a specific term for bringing an application to life: activation.
Bringing a packaged process to life involves more than ordinary unpacka...
We previously determined how to programmatically retrieve a packaged process' package and application identity. Now let's find MSIX package identity using existing tools.
TASKLIST.EXE
Using the packaged app from our previous example, we know the "image name" (aka executable filename) and that its PID (process ID) is 7664.
lists packaged proces...
We previously determined how to tell if a process is packaged or unpackaged using Task Manager. Now let's find its package and application identity in code.
Windows provides APIs to retrieve package and application identity for a process:
If you prefer WinRT:
Kernel mode
What about kernel mode? Nearly all MSIX APIs require a user-mode calle...
Overheard in a recent conversation:
Enterprise Administrator: "The ***redacted*** application is awesome, but it really should be an MSIX package."
Microsoft Developer: "Ummm, it already is."
That sparked another question: How can you tell if an application is packaged or unpackaged?
Turns out there's a few simple w...
Payload files
Payload files are files stored in and delivered by the package. This includes your code, assets, and data, such as executables, DLLs, images, configuration files, and resources. For example:
Content files
The term content is sometimes used in MSIX-related APIs and documentation, but it does not provide as clean a classifica...
Every MSIX package is one of four package types:
MSIX also supports Bundle packages. Bundles are somewhat different from those four package types: a Bundle is a container for one or more MSIX packages. Windows APIs nevertheless expose Bundle alongside the other package types when identifying packages.
Each package type has its own behavior...
An MSIX package can be staged in several ways and locations:
By far the most common is PackageVolume. We'll dig into the rest in future posts, but for now let's focus on MSIX PackageVolume.
In the beginning...
When MSIX first appeared in Windows 81 packages would be staged to a unique directory under . More specifically, packages were pl...
How does MSIX service a package while it's in use?
Simple: It doesn't.
A core principle of MSIX servicing is:
Do not service a package while it's in use.
Deployment provides several ways to deal with that constraint. Options range from terminating applications to deferring servicing until the package is no longer in use.
How hard can it be?
'...
As previously discussed, we can divide processes into the two broad categories of packaged vs unpackaged, based on if the process HAS or LACKS package identity.
Packaged processes can be divided into three broad categories:
All three have package identity, but they make different tradeoffs between compatibility and modern packaged behavior....