Discovering application packaging and MSIX basics
For most of this book, we have built and run our WinUI 3 applications locally. Now, it’s time to learn the concepts of packaging and deploying WinUI applications and put that knowledge to use.
Why package your application? Well, an application package is the easiest way for WinUI applications and their dependencies to be installed in Windows. Today, when you run a WinUI project in Visual Studio, the integrated development environment (IDE) creates a package and deploys it locally. Packaging serves several other important purposes, outlined as follows:
- Providing a clean uninstall: A packaging system ensures that any files installed or updated with an application are removed or restored to their previous state when the application is uninstalled
- Bundling dependencies: The application package will bundle and deliver all your application’s dependencies, optimizing disk space by sharing files across installed...