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

aluzi liu 486 Reputation points
2023-10-10T09:02:47.31+00:00

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

MainProject

SubProject

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.
886 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jeanine Zhang-MSFT 11,341 Reputation points Microsoft External Staff
    2023-10-11T02:41:22.78+00:00

    Hello,

    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: https://stackoverflow.com/questions/73607820/msix-start-other-application-in-multiple-application-package

    Thank you.

    Jeanine


    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.