advanced MSI packaging

YOU’RE READING

MSIX Packaging Fundamentals

by Tim Mangan, Bogdan Mitrache & Kevin Kaminski

Download ebook

Using the App Installer App

Installing App Installer App

The App Installer application is now included with the operating system, however earlier versions of the OS required it to be obtained and installed from the Microsoft Store.

The App Installer app was built to simplify the installation of MSIX applications. With it, you can access a user-friendly double click method to install applications and avoid the complexity of PowerShell commands.

Another great feature of the App Installer app is that you get meaningful error messages to help you diagnose installation issues. If there are installation issues, the application is designed to provide error messages that help diagnose the application installation issue.

For earlier versions of the OS, the App Installer App may be obtained and installed from the Microsoft Store.

App Installer app available in the Microsoft Store

Alternatively, you can open the Windows Store app and search for “app installer”. It should be the first application in the results.

Click Get to install the application. You may be prompted to sign into the store if you have not configured the Windows Store with your Microsoft account.

The application will download and install and no further action or configuration is required to use the features of the App Installer.

Application Management via App Installer App

Manual Software Installation

With the App Installer present on the machine, it is possible to double click both MSIX and AppX applications as well as application bundles and get them to install (similar to an offline installation). There also is the .AppInstaller file that helps define more complicated application installations while providing a framework for light management of application updates.

The App Installer App uses a small GUI that aids the user performing the installation:

  • To verify whether the package is validly signed with an acceptable certificate.
  • Distinguish new installation, upgrade, and downgrade scenarios.
  • Understand dependencies, including modification package installation situations.

App Installer App from Web Sites

The App Installer also allows users to initiate an installation from web accessible URLs that point to either an MSIX/AppX application, application bundles or an .appinstaller file. To successfully host MSIX packages from the web, the following needs to be in place.

Web Server Configuration

  • Support for HTTP/1.1: The web server needs to support byte range requests from the client to fulfill the communication requirements from App Installer.
  • Required MIME Types: New MIME types are needed to support MSIX

File Extension

MIME Type

.appx

application/appx

.msix

application/msix

.appxbundle

application/appxbundle

.msixbundle

application/msixbundle

.appinstaller

application/appinstaller


Required MIME types to host MSIX packages for web consumption

The MIME types in the table above are needed to configure the web server’s response to the incoming request. For example, if you use IIS as a web server to host your MSIX packages, the following settings would be added to the web.config file.

<system.webServer>
	<!--This is to allow the web server to serve resources with the appropriate file extension-->
	<staticContent>
  	<mimeMap fileExtension=".appx"  
       	mimeType="application/appx" />
  	<mimeMap fileExtension=".msix"
       	mimeType="application/msix" />
  	<mimeMap fileExtension=".appxbundle"
       	mimeType="application/appxbundle" />
  	<mimeMap fileExtension=".msixbundle"
       	mimeType="application/msixbundle" />
  	<mimeMap fileExtension=".appinstaller"
       	mimeType="application/appinstaller" />
	</staticContent>
</system.webServer>

The process is similar for other web hosting platforms.

Uninstall an MSIX Package using App Installer App

The process to remove an MSIX package is straightforward. Simply locate it in the Start Menu and right click, then select Uninstall.

Uninstall MSIX package from a device

You will be prompted to uninstall the software. Confirm the uninstall action by clicking Uninstall in the prompt.

Confirmation of the Uninstall of an MSIX package prompt

While quite simple for the end-user, the admin should be aware of the following:

  • Like installation, in most cases an uninstall may be performed without elevation.
  • By default, this method of installation removes not only the installed package, but also removes any user settings stored in the container and/or application registry hive.
  • Removal of a package also automatically removes any Modification package to the package. If you wish to remove the modification package only, this is accomplished via the Windows Settings application by locating the application, exposing the advanced details to see the modification packages and uninstalling from there (or via PowerShell).
advanced MSI packaging

YOU’RE READING

MSIX Packaging Fundamentals

by Tim Mangan, Bogdan Mitrache & Kevin Kaminski

Download ebook