How to add exe file from other project to MSIX package?

aluzi liu 486 Reputation points

I create a solution in VS2022, this solution contains two packaged WinUI project:



When distribute the app, it should contain these two project's output, but I can choose only one project to make MSIX package, how to combine these two project to one MSIX package?

And If I can combine, when "MainProject" is running, how to launch "Subproject"?

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
730 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 9,261 Reputation points Microsoft Vendor


    Welcome to Microsoft Q&A!

    If you need to combine multiple executables into a single MSIX package, then you'll need to continue using a Windows Application Packaging Project in your solution.

    I suggest you could refer to the Doc: Set up your desktop application for MSIX packaging in Visual Studio

    And If I can combine, when "MainProject" is running, how to launch "Subproject"?

    The correct way to run an app, installed by an MSIX package, programmatically or from the command line is with the use of an execution alias.

    I suggest you could refer to the thread:

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful