Package desktop applications (MSIX)
Take your existing desktop application and add modern experiences for Windows 10 users. Then, achieve greater reach across international markets by distributing it through the Microsoft Store. You can monetize your application in much simpler ways by leveraging features built right into the Store. Of course, you don't have to use the Store. Feel free to use your existing channels.
When you create an MSIX package for your desktop application, your application will get an identity and with that identity, your desktop application has access to Windows Universal Platform (UWP) APIs. You can use them to light up modern and engaging experiences such as live tiles and notifications. Use simple conditional compilation and runtime checks to run UWP code only when your application runs on Windows 10.
Aside from the code that you use to light up Windows 10 experiences, your application remains unchanged and you can continue to distribute it to users on previous versions of Windows. On Windows 10, your application continues to run in full-trust user mode just like it’s doing today.
First, prepare your application by reviewing the article Prepare to package your desktop app, and then addressing any of the issues that apply to your application before you create a Windows app package for it. You might not have to make many changes to your application before you create the package. However, there are some situations that might require you to tweak your application before you create a package for it.
Build an MSIX from source code using Visual Studio
If you maintain your application by using Visual Studio, and your application doesn't have an installer or your installer doesn't perform too many complicated tasks, consider using Visual Studio instead.
Visual Studio makes it easy to create a package. You'll add a Windows Application Package Project to your solution, reference your desktop project, and then press F5 to debug your app. Here's a few other things you can do with it.
✔️ Automatically generate visual assets.
✔️ Make changes to your manifest by using a visual designer.
✔️ Generate your package by using a wizard.
✔️ Easily assign an identity to your application from a name that you've already reserved in Partner Center.
For instructions, see Package a desktop application by using Visual Studio. The following table shows the supported versions of Visual Studio, Windows 10, and package formats.
|Supported versions of Visual Studio||Supported OS versions for creating packages||Supported OS versions for installed packages||Supported package formats|
|Visual Studio 2019
Visual Studio 2017 15.5 and later
|Windows 10, version 1607 and later||Windows 10, version 1607 and later||.msix (for Windows 10, version 1709 and later)
.appx (for Windows 10, version 1607 and later)
Add modern Windows 10 experiences
After you create an MSIX package for your desktop app, you can use UWP APIs, package extensions, and UWP components to light up modern and engaging Windows 10 experiences such as live tiles and notifications.
Enhance with UWP APIs
Once you've packaged your app, you can light it up with features such as live tiles, and push notifications. Some of these capabilities can significantly improve the engagement level of your application and they cost you very little time to add. Some enhancements require a bit more code.
Integrate with package extensions
If your application needs to integrate with the system (For example: establish firewall rules), describe those things in the package manifest of your application and the system will do the rest. For most of these tasks, you won't have to write any code at all. With a bit of XML in the manifest, you can do things like start a process when the user logs on, integrate your application into File Explorer, and add your application a list of print targets that appear in other apps.
Extend with UWP components
Some Windows 10 experiences (For example: a touch-enabled UI page) must run inside of a modern app container. In general, you should first determine whether you can add your experience by Enhancing your existing desktop application with UWP APIs. If you have to use a UWP component, to achieve the experience, then you can add a UWP project to your solution and use app services to communicate between your desktop application and the UWP component.
To test your application in a realistic setting as you prepare for distribution, it's best to sign your application and then install it. See Test your app.
If you plan to publish your application to the Microsoft Store, make sure that your application operates correctly on devices that run Windows 10 in S mode. This is a Store requirement. See Test your Windows app for Windows 10 in S mode.
To give your application the best chance of being published on the Microsoft Store or becoming Windows Certified, validate and test it locally before you submit it for certification.
If you're using the DAC to package your app, you can use the new
-Verify flag to validate your package against the packaged desktop application and Store requirements. See Package an app, sign the app, and prepare it for Store submission.
If you're using Visual Studio, you can validate your application from the Create App Packages wizard. See Create an app package upload file.
To run the tool manually, see Windows App Certification Kit.
To review the list of tests that the Windows App Certification uses to validate your app, see Windows Desktop Bridge app tests.
You can distribute your application by publishing it the Microsoft Store or by sideloading it onto other systems.